Skip to content

Commit

Permalink
Fix unbookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Aug 26, 2024
1 parent efa2bfa commit e914678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/nodeBookmarkStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const useNodeBookmarkStore = defineStore('nodeBookmark', () => {
const toggleBookmark = (node: ComfyNodeDefImpl) => {
if (isBookmarked(node)) {
deleteBookmark(node.nodePath)
// Delete the bookmark at the top level if it exists
// This is used for clicking the bookmark button in the node library, i.e.
// the node is inside original/standard node library tree node
deleteBookmark(node.display_name)
} else {
addBookmark(node.display_name)
}
Expand Down

0 comments on commit e914678

Please sign in to comment.