Add simpler interface for active DOM widgets

This commit is contained in:
filtered
2025-05-15 14:33:53 +10:00
parent 0fe0519531
commit a3615b3824
3 changed files with 7 additions and 5 deletions

View File

@@ -801,7 +801,7 @@ export class ComfyApp {
const widgetStore = useDomWidgetStore()
// Assertions: UnwrapRef
for (const { widget } of widgetStore.widgetStates.values()) {
for (const { widget } of widgetStore.activeWidgetStates) {
if (!nodeSet.has(widget.node)) {
widgetStore.deactivateWidget(widget.id)
}