Skip to content

Commit 9fe45a0

Browse files
committed
minor
1 parent 183e46b commit 9fe45a0

File tree

1 file changed

+19
-19
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+19
-19
lines changed

services/static-webserver/client/source/class/osparc/data/model/Workbench.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -508,26 +508,26 @@ qx.Class.define("osparc.data.model.Workbench", {
508508
// reload also before port connection happens
509509
this.fireEvent("reloadModel");
510510
requesterNode.addPortLink(portId, filePickerId, "outFile")
511-
.then(success => {
512-
if (success) {
513-
if (file) {
514-
const fileObj = file.data;
515-
osparc.file.FilePicker.setOutputValueFromStore(
516-
filePicker,
517-
fileObj.getLocation(),
518-
fileObj.getDatasetId(),
519-
fileObj.getFileId(),
520-
fileObj.getLabel()
521-
);
511+
.then(success => {
512+
if (success) {
513+
if (file) {
514+
const fileObj = file.data;
515+
osparc.file.FilePicker.setOutputValueFromStore(
516+
filePicker,
517+
fileObj.getLocation(),
518+
fileObj.getDatasetId(),
519+
fileObj.getFileId(),
520+
fileObj.getLabel()
521+
);
522+
}
523+
this.fireDataEvent("openNode", filePicker.getNodeId());
524+
this.fireEvent("reloadModel");
525+
} else {
526+
this.removeNode(filePickerId);
527+
const msg = qx.locale.Manager.tr("File couldn't be assigned");
528+
osparc.FlashMessenger.logError(msg);
522529
}
523-
this.fireDataEvent("openNode", filePicker.getNodeId());
524-
this.fireEvent("reloadModel");
525-
} else {
526-
this.removeNode(filePickerId);
527-
const msg = qx.locale.Manager.tr("File couldn't be assigned");
528-
osparc.FlashMessenger.logError(msg);
529-
}
530-
});
530+
});
531531
};
532532
if (filePicker.getMetadata()) {
533533
populateNewNode();

0 commit comments

Comments
 (0)