Skip to content

Commit

Permalink
Fix cannot open groupNodes menu from canvas (#1980)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
webfiltered authored Dec 18, 2024
1 parent 22f9ad3 commit 0ce66e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- master
- core/1.5
paths:
- "package.json"

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/core/groupNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ function addConvertToGroupOptions() {
options.splice(index + 1, null, {
content: `Manage Group Nodes`,
disabled,
callback: manageGroupNodes
callback: () => manageGroupNodes()
})
}

Expand Down
5 changes: 3 additions & 2 deletions src/extensions/core/groupNodeManage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 0ce66e9

Please sign in to comment.