Explorar o código

fix a type of an argument of useUntitledPage

WNomunomu %!s(int64=2) %!d(string=hai) anos
pai
achega
65c0f4af9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}`;