Skip to content

Commit 61e40cf

Browse files
committed
unser parent id if parent is not fetched
1 parent 14eec9a commit 61e40cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ayon_api/entity_hub.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,8 @@ def delete_entity(self, entity):
825825
parent = self._entities_by_id.get(parent_id)
826826
if parent is not None:
827827
parent.remove_child(entity.id)
828+
else:
829+
self.unset_entity_parent(entity.id, parent_id)
828830

829831
def reset_immutable_for_hierarchy_cache(
830832
self, entity_id: Optional[str], bottom_to_top: Optional[bool] = True

0 commit comments

Comments
 (0)