ryoji-s 2 سال پیش
والد
کامیت
ff5c92ff78
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      apps/app/src/components/Sidebar/PageCreateButton/hooks.tsx
  2. 1 1
      apps/app/src/server/routes/apiv3/pages.js

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

@@ -36,7 +36,7 @@ export const useOnNewButtonClicked = (
         isSlackEnabled: false,
         isSlackEnabled: false,
         slackChannels: '',
         slackChannels: '',
         grant: shouldUseRootPath ? 1 : currentPage.grant,
         grant: shouldUseRootPath ? 1 : currentPage.grant,
-        grantUserGroupId: shouldUseRootPath ? undefined : currentPage.grantedGroups,
+        grantUserGroupIds: shouldUseRootPath ? undefined : currentPage.grantedGroups,
         shouldGeneratePath: true,
         shouldGeneratePath: true,
       };
       };
 
 

+ 1 - 1
apps/app/src/server/routes/apiv3/pages.js

@@ -332,7 +332,7 @@ module.exports = (crowi) => {
           path = await generateUniquePath(defaultTitle);
           path = await generateUniquePath(defaultTitle);
           // initialize grant data
           // initialize grant data
           grant = 1;
           grant = 1;
-          grantUserGroupIds = null;
+          grantUserGroupIds = undefined;
         }
         }
       }
       }
       catch (err) {
       catch (err) {