Browse Source

update use on new button clicked

ryoji-s 2 years ago
parent
commit
221fe4d907
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/components/Sidebar/PageCreateButton/hooks.tsx

+ 1 - 1
apps/app/src/components/Sidebar/PageCreateButton/hooks.tsx

@@ -37,7 +37,7 @@ export const useOnNewButtonClicked = (
 
       const response = await createPage(parentPath, '', params);
 
-      router.push(`${response.page.id}#edit`);
+      router.push(`${response.page.path}#edit`);
     }
     catch (err) {
       toastError(err);