Skip to content

Commit

Permalink
Update dvc/repo/plots/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Berenbaum <[email protected]>
  • Loading branch information
2 people authored and skshetry committed Mar 5, 2024
1 parent e5e4825 commit d5b2fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/repo/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def _add_annotations_to_image_definition(target):
# target["data"] empty dict all share the same reference, so override them
annotations = {"annotations": annotation_file}
if target["data"][path]:
target["data"][path].update({"annotations": annotation_file})
target["data"][path].update(annotations)
else:
target["data"][path] = annotations
path_to_remove.append(annotation_file)
Expand Down

0 comments on commit d5b2fb6

Please sign in to comment.