mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 09:19:43 +00:00
Fix unbookmark node in node library (#639)
* Add unbookmark test * Fix unbookmark
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user