Commit 45a3df1c authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'filter-widgets-crash-fix' of https://github.com/Jantolick/ComfyUI

parents ecb80abb 88410ace
...@@ -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