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