[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

@@ -62,10 +62,8 @@ export const useWorkflowPacks = (options: UseNodePacksOptions = {}) => {
Array.from(packsToUniqueIds(workflowPacks.value))
)
const { startFetch, cleanup, error, isLoading, nodePacks } = useNodePacks(
workflowPacksIds,
options
)
const { startFetch, cleanup, error, isLoading, nodePacks, isReady } =
useNodePacks(workflowPacksIds, options)
const isIdInWorkflow = (packId: string) =>
workflowPacksIds.value.includes(packId)
@@ -80,6 +78,7 @@ export const useWorkflowPacks = (options: UseNodePacksOptions = {}) => {
return {
error,
isLoading,
isReady,
workflowPacks: nodePacks,
startFetchWorkflowPacks: startFetch,
filterWorkflowPack