Catch blob errors in admin nav
This commit is contained in:
parent
42176a8148
commit
d3decb6af5
@ -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),
|
||||
]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user