From 61e40cf20bf13071dbdefc299ad13644ea6c62f7 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:29:01 +0100 Subject: [PATCH] unser parent id if parent is not fetched --- ayon_api/entity_hub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ayon_api/entity_hub.py b/ayon_api/entity_hub.py index 4cab8f282..356caea63 100644 --- a/ayon_api/entity_hub.py +++ b/ayon_api/entity_hub.py @@ -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