Kaynağa Gözat

delete shouldReturnIfPathExists

ryoji-s 2 yıl önce
ebeveyn
işleme
600409c263

+ 0 - 3
apps/app/src/components/Sidebar/PageCreateButton/PageCreateButton.tsx

@@ -81,7 +81,6 @@ export const PageCreateButton = React.memo((): JSX.Element => {
         slackChannels: '',
         grant: 1,
         pageTags: [],
-        shouldReturnIfPathExists: true,
       };
 
       await createPage(todaysPath, '', params);
@@ -115,7 +114,6 @@ export const PageCreateButton = React.memo((): JSX.Element => {
         grant: currentPage?.grant || 1,
         pageTags: [],
         grantUserGroupId: currentPage?.grantedGroup?._id,
-        shouldReturnIfPathExists: true,
       };
 
       await createPage(path, '', params);
@@ -149,7 +147,6 @@ export const PageCreateButton = React.memo((): JSX.Element => {
         grant: currentPage?.grant || 1,
         pageTags: [],
         grantUserGroupId: currentPage?.grantedGroup?._id,
-        shouldReturnIfPathExists: true,
       };
 
       await createPage(path, '', params);

+ 0 - 1
apps/app/src/interfaces/page-operation.ts

@@ -35,5 +35,4 @@ export type OptionsToSave = {
   grantUserGroupId?: string | null;
   grantUserGroupName?: string | null;
   shouldGeneratePath?: boolean | null;
-  shouldReturnIfPathExists?: boolean | null;
 };