Skip to content

Commit 9155d4a

Browse files
committed
Node not found while creating link
1 parent 7f04015 commit 9155d4a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

services/static-webserver/client/source/class/osparc/desktop/MainPageHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ qx.Class.define("osparc.desktop.MainPageHandler", {
9797

9898
// check if there is any linked node missing
9999
if (osparc.study.Utils.isAnyLinkedNodeMissing(studyData)) {
100-
const msg = `${qx.locale.Manager.tr("We found an issue with some links")}<br>${qx.locale.Manager.tr("Please contact support.")}`;
100+
const msg = `${qx.locale.Manager.tr("We found an issue with some links.")}<br>${qx.locale.Manager.tr("They will be removed.")}`;
101101
throw new Error(msg);
102102
}
103103

services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,10 @@ qx.Class.define("osparc.form.renderer.PropForm", {
929929
ctrlLink.addListener("mouseout", () => highlightEdgeUI(false));
930930

931931
const fromNode = study.getWorkbench().getNode(fromNodeId);
932+
if (!fromNode) {
933+
console.error("Node not found while creating link", fromNodeId);
934+
return false;
935+
}
932936
const prettifyLinkString = () => {
933937
const port = fromNode.getOutput(fromPortId);
934938
const fromPortLabel = port ? port.label : null;

0 commit comments

Comments
 (0)