refactor: apply code review

This commit is contained in:
Jin Yi
2026-02-24 15:02:36 +09:00
parent 9900c2978c
commit 3fc47e25f5
2 changed files with 7 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ const showLoadingState = computed(() => {
return true
}
if (!groupByJob.value && isResolving.value) {
return true
return ungroupedAssets.value.length === 0
}
return false
})

View File

@@ -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
},