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

This commit is contained in:
Joseph Antolick 2023-11-01 16:52:51 -04:00
parent e73ec8c4da
commit 88410ace9b
1 changed files with 1 additions and 1 deletions

View File

@ -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;