mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
refactor: apply code review
This commit is contained in:
@@ -467,7 +467,7 @@ const showLoadingState = computed(() => {
|
||||
return true
|
||||
}
|
||||
if (!groupByJob.value && isResolving.value) {
|
||||
return true
|
||||
return ungroupedAssets.value.length === 0
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
@@ -49,8 +49,12 @@ export function useUngroupedAssets(
|
||||
result.push(asset)
|
||||
continue
|
||||
}
|
||||
const children = await cachedResolve(metadata.jobId)
|
||||
result.push(...(children?.length ? children : [asset]))
|
||||
try {
|
||||
const children = await cachedResolve(metadata.jobId)
|
||||
result.push(...(children?.length ? children : [asset]))
|
||||
} catch {
|
||||
result.push(asset)
|
||||
}
|
||||
}
|
||||
return result
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user