Skip to content

Commit 9b0e45e

Browse files
committed
fix dangling drop here
1 parent 8fef410 commit 9b0e45e

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,14 +2019,14 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
20192019
this.__draggingLink(e, false);
20202020

20212021
if (this.__isDraggingLink && "dragData" in this.__isDraggingLink) {
2022+
const data = this.__isDraggingLink["dragData"];
2023+
this.__isDraggingLink = null;
20222024
const pos = this.__pointerEventToWorkbenchPos(e, false);
20232025
const service = qx.data.marshal.Json.createModel(osparc.service.Utils.getFilePicker());
20242026
const nodeUI = await this.__addNode(service, pos);
20252027
if (nodeUI) {
20262028
const node = nodeUI.getNode();
2027-
const data = this.__isDraggingLink["dragData"];
20282029
osparc.file.FilePicker.setOutputValueFromStore(node, data.getLocation(), data.getDatasetId(), data.getFileId(), data.getLabel());
2029-
this.__isDraggingLink = null;
20302030
}
20312031
}
20322032
},

0 commit comments

Comments
 (0)