mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 00:50:05 +00:00
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:
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
@@ -6,6 +6,7 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
- core/1.5
|
||||
paths:
|
||||
- "package.json"
|
||||
|
||||
|
||||
@@ -1425,7 +1425,7 @@ function addConvertToGroupOptions() {
|
||||
options.splice(index + 1, null, {
|
||||
content: `Manage Group Nodes`,
|
||||
disabled,
|
||||
callback: manageGroupNodes
|
||||
callback: () => manageGroupNodes()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user