From 33c16ae7bb1dc4d590195d85b680db3cd4d79aee Mon Sep 17 00:00:00 2001 From: AlexandreKempf Date: Tue, 27 Feb 2024 08:12:16 +0100 Subject: [PATCH] Update dvc/repo/plots/__init__.py Co-authored-by: Dave Berenbaum --- dvc/repo/plots/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/plots/__init__.py b/dvc/repo/plots/__init__.py index 9adea9104d..a2659bd57f 100644 --- a/dvc/repo/plots/__init__.py +++ b/dvc/repo/plots/__init__.py @@ -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)