ryoji-s 2 лет назад
Родитель
Сommit
ff5c92ff78

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

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

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

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