Issue with beforeDelete Hook Behavior in List and Editing Views #11073
antofopera
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Issue with
beforeDelete
Hook Behavior in List and Editing ViewsI added a
beforeDelete
hook to check for entities associated with the document before deletion. It works as expected in the list view, showing my custom error message in a popup (e.g., "You still have N related docs.").However, in the editing view, the error message is inconsistent—it simply states "Something went wrong." instead of displaying my custom message.
Question
Is this the expected behavior? If so, why is there an inconsistency between the two views?
PS: The Editing View refers to the view when you click to edit an individual document.
Beta Was this translation helpful? Give feedback.
All reactions