[Manager] Fix infinite fetch attempts when response is empty (#3392)

This commit is contained in:
Christian Byrne
2025-04-11 07:39:54 +08:00
committed by GitHub
parent c801a0c854
commit d687ea2cde
3 changed files with 20 additions and 12 deletions

View File

@@ -12,10 +12,8 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
Array.from(comfyManagerStore.installedPacksIds)
)
const { startFetch, cleanup, error, isLoading, nodePacks } = useNodePacks(
installedPackIds,
options
)
const { startFetch, cleanup, error, isLoading, nodePacks, isReady } =
useNodePacks(installedPackIds, options)
const filterInstalledPack = (packs: components['schemas']['Node'][]) =>
packs.filter((pack) => comfyManagerStore.isPackInstalled(pack.id))
@@ -27,6 +25,7 @@ export const useInstalledPacks = (options: UseNodePacksOptions = {}) => {
return {
error,
isLoading,
isReady,
installedPacks: nodePacks,
startFetchInstalled: startFetch,
filterInstalledPack