Skip to content

Commit a048bd1

Browse files
committed
Additional safety check
#10
1 parent fb5c63e commit a048bd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui_upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function findInputNodeId(toNode, filter = null) {
259259
const allNodes = toNode._flow.global.allNodes;
260260
for (const fromNodeId of Object.keys(allNodes)) {
261261
const fromNode = allNodes[fromNodeId];
262-
if (fromNode.wires) {
262+
if (fromNode && fromNode.wires) {
263263
for (const wireId of Object.keys(fromNode.wires)) {
264264
const wire = fromNode.wires[wireId];
265265
for (const toNodeId of wire) {

0 commit comments

Comments
 (0)