fix: not defined variable with onSearchBox

fix #71
This commit is contained in:
NateScarlet
2019-04-28 18:34:57 +08:00
parent 3bb3ccc98b
commit e05c67da69

View File

@@ -7995,7 +7995,7 @@ LGraphNode.prototype.executeAction = function(action)
if (!str) return;
if (that.onSearchBox) {
var list = that.onSearchBox(help, str, graphcanvas);
var list = that.onSearchBox(helper, str, graphcanvas);
if (list)
for (var i = 0; i < list.length; ++i) addResult(list[i]);
} else {