Parcourir la source

fix a type of an argument of useUntitledPage

WNomunomu il y a 1 an
Parent
commit
65c0f4af9f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apps/app/src/stores/page.tsx

+ 1 - 1
apps/app/src/stores/page.tsx

@@ -239,7 +239,7 @@ export const useSWRxPageRevision = (pageId: string, revisionId: Ref<IRevision>):
   );
   );
 };
 };
 
 
-export const useUntitledPage = (pageId: string): SWRResponse<boolean> => {
+export const useUntitledPage = (pageId?: string): SWRResponse<boolean> => {
 
 
   const key = `untitled/${pageId}`;
   const key = `untitled/${pageId}`;