Skip to content

Commit a45a91d

Browse files
committed
fix: compare callback agains undefined
1 parent 108e402 commit a45a91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WiredPanels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ export default class WiredPanels {
668668
this.changeGraph(nodesToAdd, nodesToRemove);
669669
else
670670
this.changeGraph(nodesToRemove, nodesToAdd);
671-
if(callback)
671+
if(callback !== undefined)
672672
callback(forward);
673673
}.bind(this));
674674
}

0 commit comments

Comments
 (0)