mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
safety check
This commit is contained in:
parent
9f106441d8
commit
ce82ea6ef7
@ -19,6 +19,6 @@ class Mothership < ApplicationRecord
|
||||
this_object = Character.find_by(id: self.character_id)
|
||||
other_object = Character.find_by(id: self.mother_id)
|
||||
|
||||
other_object.children.delete(this_object) if other_object.present?
|
||||
other_object.children.delete(this_object) if other_object.present? && this_object.present?
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user