2
0
Эх сурвалжийг харах

set default value for skipPageExistenceCheck

Futa Arai 1 жил өмнө
parent
commit
3e2f468bc1

+ 1 - 1
apps/app/src/client/services/create-page/use-create-page.tsx

@@ -57,9 +57,9 @@ export const useCreatePage: UseCreatePage = () => {
 
 
   const create: CreatePage = useCallback(async(params, opts = {}) => {
   const create: CreatePage = useCallback(async(params, opts = {}) => {
     const {
     const {
-      skipPageExistenceCheck,
       onCreationStart, onCreated, onAborted, onTerminated,
       onCreationStart, onCreated, onAborted, onTerminated,
     } = opts;
     } = opts;
+    const skipPageExistenceCheck = opts.skipPageExistenceCheck ?? false;
     const skipTransition = opts.skipTransition ?? false;
     const skipTransition = opts.skipTransition ?? false;
 
 
     // check the page existence
     // check the page existence