nHigashiWeseek 1 year ago
parent
commit
ef090ce227
1 changed files with 2 additions and 6 deletions
  1. 2 6
      apps/app/src/stores/page-listing.tsx

+ 2 - 6
apps/app/src/stores/page-listing.tsx

@@ -55,16 +55,12 @@ export const useSWRINFxRecentlyUpdated = (limit: number, includeWipPage?: boolea
   );
   );
 };
 };
 
 
-export const mutateRecentlyUpdated = async(): Promise<void[]> => {
-  const mutations: Promise<void>[] = [];
-
+export const mutateRecentlyUpdated = async(): Promise<undefined> => {
   for (const key of cache.keys()) {
   for (const key of cache.keys()) {
     if (key.includes('/pages/recent')) {
     if (key.includes('/pages/recent')) {
-      mutations.push(mutate(key));
+      mutate(key);
     }
     }
   }
   }
-
-  return Promise.all(mutations);
 };
 };
 
 
 export const mutatePageList = async(): Promise<void[]> => {
 export const mutatePageList = async(): Promise<void[]> => {