From f0041842639e59b0920e610f8ff7de3ebb33e7a6 Mon Sep 17 00:00:00 2001 From: Odei Maiz <33152403+odeimaiz@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:02:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[Frontend]=20Fix:=20unlink=20por?= =?UTF-8?q?t=20(#6284)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/source/class/osparc/form/renderer/PropForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js b/services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js index f3d257222d7..9150cfe0499 100644 --- a/services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js +++ b/services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js @@ -861,7 +861,7 @@ qx.Class.define("osparc.form.renderer.PropForm", { if (this.__resetCtrlField(portId)) { if (portId in this.__linkUnlinkStackMap) { const stack = this.__linkUnlinkStackMap[portId]; - if (stack.getSelectables() > 0) { + if (stack.getSelectables().length > 0) { stack.setSelection([stack.getSelectables()[0]]); } }