"docs/source/vscode:/vscode.git/clone" did not exist on "0de35e4a5204d2a94edc5ab108b5061a7a7013e8"
Commit 88410ace authored by Joseph Antolick's avatar Joseph Antolick
Browse files

fix: handle null case for currentNode widgets to prevent scroll error

parent e73ec8c4
...@@ -25,7 +25,7 @@ const ext = { ...@@ -25,7 +25,7 @@ const ext = {
requestAnimationFrame(() => { requestAnimationFrame(() => {
const currentNode = LGraphCanvas.active_canvas.current_node; const currentNode = LGraphCanvas.active_canvas.current_node;
const clickedComboValue = currentNode.widgets const clickedComboValue = currentNode.widgets
.filter(w => w.type === "combo" && w.options.values.length === values.length) ?.filter(w => w.type === "combo" && w.options.values.length === values.length)
.find(w => w.options.values.every((v, i) => v === values[i])) .find(w => w.options.values.every((v, i) => v === values[i]))
?.value; ?.value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment