Pārlūkot izejas kodu

fix a type of an argument of useUntitledPage

WNomunomu 2 gadi atpakaļ
vecāks
revīzija
65c0f4af9f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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}`;