Catch blob errors in admin nav

This commit is contained in:
Sam Becker 2024-01-19 09:24:22 -06:00
parent 42176a8148
commit d3decb6af5

View File

@ -19,7 +19,12 @@ export default async function AdminNav() {
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),
]);