Add inactive item fallback for dashboard change feed lookups
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-04-12 22:46:28 +02:00
parent 79f4138b95
commit 6ca09cdf1f
4 changed files with 98 additions and 4 deletions
+12 -1
View File
@@ -165,7 +165,18 @@ export function dashboardPageData(store) {
if (missingItemUuids.length) {
const results = await Promise.allSettled(
missingItemUuids.map((uuid) => getStockEntry(store, uuid)),
missingItemUuids.map(async (uuid) => {
try {
return await getStockEntry(store, uuid);
} catch (error) {
const status = error?.status || error?.cause?.status;
if (status !== 404) {
throw error;
}
return getStockEntry(store, uuid, { allowInactive: true });
}
}),
);
results.forEach((result) => {