fix(assets): 修复更新孩子节点时的log error

pull/5242/head
ibuler 4 years ago committed by Jiangjie.Bai
parent ddbbc8df17
commit d0c9aa2c55

@ -493,7 +493,7 @@ class Node(OrgModelMixin, SomeNodesMixin, FamilyMixin, NodeAssetsMixin):
nodes_mapper = {n.key: n for n in nodes_sorted}
for node in nodes_sorted:
parent = nodes_mapper.get(node.parent_key)
if not parent:
if not parent and node.parent_key:
logger.error(f'Node parent node in mapper: {node.parent_key} {node.value}')
continue
node.full_value = parent.full_value + '/' + node.value

Loading…
Cancel
Save