From 6c07cdec90d21c1c623605e66e9236005d930809 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 1 Mar 2024 18:01:02 -0600 Subject: [PATCH] Add resiliency to --- src/admin/AdminNav.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/AdminNav.tsx b/src/admin/AdminNav.tsx index 280ef762..95a9d24a 100644 --- a/src/admin/AdminNav.tsx +++ b/src/admin/AdminNav.tsx @@ -16,14 +16,14 @@ export default async function AdminNav() { countUploads, countTags, ] = await Promise.all([ - getPhotosCountIncludingHiddenCached(), + getPhotosCountIncludingHiddenCached().catch(() => 0), getStorageUploadUrlsNoStore() .then(urls => urls.length) .catch(e => { console.error(`Error getting blob upload urls: ${e}`); return 0; }), - getUniqueTagsCached().then(tags => tags.length), + getUniqueTagsCached().then(tags => tags.length).catch(() => 0), ]); const navItemPhotos = {