Browse Source

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

pull/1890/head
comfyanonymous 1 year ago
parent
commit
45a3df1cde
  1. 2
      web/extensions/core/contextMenuFilter.js

2
web/extensions/core/contextMenuFilter.js

@ -25,7 +25,7 @@ const ext = {
requestAnimationFrame(() => {
const currentNode = LGraphCanvas.active_canvas.current_node;
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]))
?.value;

Loading…
Cancel
Save