Skip to content

Commit 24cbc41

Browse files
[Manager] Fix bug: opening modal when last focused tab was 'Installed' always shows empty list (#4252)
1 parent a80a939 commit 24cbc41

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/composables/nodePack/useInstalledPacks.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
1818
const filterInstalledPack = (packs: components['schemas']['Node'][]) =>
1919
packs.filter((pack) => comfyManagerStore.isPackInstalled(pack.id))
2020

21+
const startFetchInstalled = async () => {
22+
await comfyManagerStore.refreshInstalledList()
23+
await startFetch()
24+
}
25+
2126
onUnmounted(() => {
2227
cleanup()
2328
})
@@ -27,7 +32,7 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
2732
isLoading,
2833
isReady,
2934
installedPacks: nodePacks,
30-
startFetchInstalled: startFetch,
35+
startFetchInstalled,
3136
filterInstalledPack
3237
}
3338
}

src/stores/comfyManagerStore.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
213213
isPackInstalled: isInstalledPackId,
214214
isPackEnabled: isEnabledPackId,
215215
getInstalledPackVersion,
216+
refreshInstalledList,
216217

217218
// Pack actions
218219
installPack,

0 commit comments

Comments
 (0)