Fix admin actions log crash when displaying updates of deleted announcements (#13489)
Fixes #13487
This commit is contained in:
		
							parent
							
								
									d18d6c29f3
								
							
						
					
					
						commit
						89077fb657
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -47,7 +47,7 @@ module Admin::ActionLogsHelper
 | 
				
			||||||
        I18n.t('admin.action_logs.deleted_status')
 | 
					        I18n.t('admin.action_logs.deleted_status')
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
    when 'Announcement'
 | 
					    when 'Announcement'
 | 
				
			||||||
      truncate(attributes['text'])
 | 
					      truncate(attributes['text'].is_a?(Array) ? attributes['text'].last : attributes['text'])
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue