mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
Use null-safe navigation for destroying inbox entries when blocking
This commit is contained in:
parent
c7418b5de7
commit
4814ccdaa5
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class Ajax::AnonymousBlockController < AjaxController
|
|||
question:
|
||||
)
|
||||
|
||||
question.inboxes.first.destroy
|
||||
question.inboxes.first&.destroy
|
||||
|
||||
@response[:status] = :okay
|
||||
@response[:message] = t(".success")
|
||||
|
|
Loading…
Reference in a new issue