Migrate node library sidebar to use unique name instead of display name (#702)

* Migrate node library sidebar to use unique name instead of display name

* Break word
This commit is contained in:
Chenlei Hu
2024-09-01 17:52:53 -04:00
committed by GitHub
parent ff2d160230
commit 14da8433f7
10 changed files with 128 additions and 90 deletions

View File

@@ -35,6 +35,7 @@ import {
ContextMenu
} from '@comfyorg/litegraph'
import type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
const emit = defineEmits(['ready'])
const canvasRef = ref<HTMLCanvasElement | null>(null)
@@ -145,6 +146,9 @@ onMounted(async () => {
}
}
})
// Migrate legacy bookmarks
useNodeBookmarkStore().migrateLegacyBookmarks()
emit('ready')
})