Skip to content

Commit d7156fb

Browse files
GitHKAndrei Neagu
andauthored
🐛 null annotations can now be copied (ITISFoundation#8193)
Co-authored-by: Andrei Neagu <[email protected]>
1 parent 227bde0 commit d7156fb

File tree

1 file changed

+1
-1
lines changed
  • services/web/server/src/simcore_service_webserver/projects

1 file changed

+1
-1
lines changed

services/web/server/src/simcore_service_webserver/projects/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _replace_uuids(node: str | list | dict) -> str | list | dict:
9494
)
9595

9696
# exclude annotations UI info for conversations done in the source project
97-
annotations = project_copy.get("ui", {}).get("annotations", {}).copy()
97+
annotations = deepcopy(project_copy.get("ui", {}).get("annotations", {})) or {}
9898
for ann_id, ann in annotations.items():
9999
if ann["type"] == "conversation":
100100
project_copy["ui"]["annotations"].pop(ann_id)

0 commit comments

Comments
 (0)