Fix cannot open groupNodes menu from canvas (#1980)

* Fix cannot open groupNode menu from canvas

* Fix cannot open groupNode menu from canvas

Fixes root cause of issue

* Update release.yaml with core/1.5 branch
This commit is contained in:
filtered
2024-12-19 04:03:09 +11:00
committed by GitHub
parent 22f9ad31dc
commit 0ce66e9e97
3 changed files with 5 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ on:
branches:
- main
- master
- core/1.5
paths:
- "package.json"

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()