Skip to content

Commit 3c6a7b5

Browse files
committed
Do not clone _imageRPC with SdlArtwork
1 parent caae001 commit 3c6a7b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/js/src/manager/file/filetypes/SdlArtwork.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ class SdlArtwork extends SdlFile {
125125
clone () {
126126
const clonedParams = Object.assign({}, this); // shallow copy
127127

128-
if (clonedParams._imageRPC !== null) {
129-
clonedParams._imageRPC = Object.assign(new Image(), clonedParams._imageRPC);
130-
}
128+
// do not clone the _imageRPC parameter. let getImageRPC regenerate the property if the manager needs it
129+
delete clonedParams._imageRPC;
130+
131131
return Object.assign(new SdlArtwork(), clonedParams);
132132
}
133133
}

0 commit comments

Comments
 (0)