Skip to content

Commit 13325ea

Browse files
AlexandreKempfdberenbaum
authored andcommitted
use explicit code to fix copy bug
1 parent fd71434 commit 13325ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dvc/repo/plots/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def unpack_if_dir(fs, path, props: dict[str, str], onerror: Optional[Callable] =
538538

539539
if "data" in unpacked:
540540
for subpath in unpacked["data"]:
541-
result["data"].update({subpath: {} | props}) # avoid shared reference
541+
result["data"].update({subpath: props.copy()})
542542
else:
543543
result.update(unpacked)
544544

0 commit comments

Comments
 (0)