Update litegraph API - 237 (#1376)

This commit is contained in:
filtered
2024-10-31 04:43:38 +11:00
committed by GitHub
parent 74f7311585
commit 3fb2d423ba

View File

@@ -29,7 +29,7 @@ const ext = {
// We must request an animation frame for the current node of the active canvas to update.
requestAnimationFrame(() => {
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