[Manager] Fix bug: opening modal when last focused tab was 'Installed' always shows empty list (#4252)

This commit is contained in:
Christian Byrne
2025-06-23 02:41:15 -07:00
committed by GitHub
parent a80a939324
commit 24cbc41832
2 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,11 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
const filterInstalledPack = (packs: components['schemas']['Node'][]) =>
packs.filter((pack) => comfyManagerStore.isPackInstalled(pack.id))
const startFetchInstalled = async () => {
await comfyManagerStore.refreshInstalledList()
await startFetch()
}
onUnmounted(() => {
cleanup()
})
@@ -27,7 +32,7 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
isLoading,
isReady,
installedPacks: nodePacks,
startFetchInstalled: startFetch,
startFetchInstalled,
filterInstalledPack
}
}

View File

@@ -213,6 +213,7 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
isPackInstalled: isInstalledPackId,
isPackEnabled: isEnabledPackId,
getInstalledPackVersion,
refreshInstalledList,
// Pack actions
installPack,