Skip to content

Commit 91e6cad

Browse files
committed
// make sure metadata is ready
1 parent c1a40a5 commit 91e6cad

File tree

1 file changed

+7
-1
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+7
-1
lines changed

services/static-webserver/client/source/class/osparc/workbench/NodeUI.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,13 @@ qx.Class.define("osparc.workbench.NodeUI", {
315315
});
316316
this.resetThumbnail();
317317

318-
this.__createContentLayout();
318+
// make sure metadata is ready
319+
if (this.getNode().getMetadata()) {
320+
this.__createContentLayout();
321+
} else {
322+
this.getNode().addListenerOnce("changeMetadata", () => this.__createContentLayout(), this);
323+
}
324+
;
319325
},
320326

321327
__createContentLayout: function() {

0 commit comments

Comments
 (0)