Skip to content

Commit c7071b8

Browse files
committed
extra check
1 parent da8b70d commit c7071b8

File tree

1 file changed

+5
-1
lines changed
  • services/static-webserver/client/source/class/osparc/utils

1 file changed

+5
-1
lines changed

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ qx.Class.define("osparc.utils.Utils", {
156156
source = imgSrc;
157157
}
158158
})
159-
.finally(() => image.setSource(source));
159+
.finally(() => {
160+
if (image.getContentElement() && imgSrc) { // check if the image is still there
161+
image.setSource(source);
162+
}
163+
});
160164
},
161165

162166
addWhiteSpaces: function(integer) {

0 commit comments

Comments
 (0)