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
AlexandreKempf and dberenbaum authored Feb 27, 2024
1 parent b0c4496 commit 33c16ae
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 @@ -479,7 +479,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 33c16ae

Please sign in to comment.