Catch blob list errors in admin nav

This commit is contained in:
Sam Becker 2024-01-19 09:23:54 -06:00
parent ce1635073f
commit 43e5c91672

View File

@ -21,7 +21,12 @@ export default async function AdminLayout({
countTags,
] = await Promise.all([
getPhotosCountIncludingHiddenCached(),
getBlobUploadUrlsNoStore().then(urls => urls.length),
getBlobUploadUrlsNoStore()
.then(urls => urls.length)
.catch(e => {
console.error(`Error getting blob upload urls: ${e}`);
return 0;
}),
getUniqueTagsCached().then(tags => tags.length),
]);