Fix cannot open groupNodes menu from canvas (#1925)

* Fix cannot open groupNode menu from canvas

* Fix cannot open groupNode menu from canvas

Fixes root cause of issue

* Update locales [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2024-12-18 04:47:09 +11:00
committed by GitHub
parent 90e94df1e4
commit 7f60811ebf
8 changed files with 90 additions and 4 deletions

View File

@@ -1425,7 +1425,7 @@ function addConvertToGroupOptions() {
options.splice(index + 1, null, {
content: `Manage Group Nodes`,
disabled,
callback: manageGroupNodes
callback: () => manageGroupNodes()
})
}

View File

@@ -373,7 +373,7 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
groupNodes.map((g) =>
$el('option', {
textContent: g,
selected: `${PREFIX}${SEPARATOR}` + g === type,
selected: `${PREFIX}${SEPARATOR}${g}` === type,
value: g
})
)
@@ -512,7 +512,8 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
this.element.replaceChildren(outer)
this.changeGroup(
type
? groupNodes.find((g) => `${PREFIX}${SEPARATOR}` + g === type)
? groupNodes.find((g) => `${PREFIX}${SEPARATOR}${g}` === type) ??
groupNodes[0]
: groupNodes[0]
)
this.element.showModal()