Skip to content

Commit

Permalink
unser parent id if parent is not fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Nov 28, 2024
1 parent 14eec9a commit 61e40cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ayon_api/entity_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,8 @@ def delete_entity(self, entity):
parent = self._entities_by_id.get(parent_id)
if parent is not None:
parent.remove_child(entity.id)
else:
self.unset_entity_parent(entity.id, parent_id)

def reset_immutable_for_hierarchy_cache(
self, entity_id: Optional[str], bottom_to_top: Optional[bool] = True
Expand Down

0 comments on commit 61e40cf

Please sign in to comment.