2
0
zahmis 5 жил өмнө
parent
commit
03402bb87d

+ 0 - 1
src/client/js/components/PageDuplicateModal.jsx

@@ -72,7 +72,6 @@ const PageDuplicateModal = (props) => {
       const res = await appContainer.apiv3Post('/pages/duplicate', { pageId, pageNameInput });
       const { path } = res.data.page;
       window.location.href = encodeURI(`${path}?duplicated=${path}`);
-
     }
     catch (err) {
       setErrs(err);

+ 1 - 2
src/server/routes/apiv3/pages.js

@@ -8,7 +8,6 @@ const pathUtils = require('growi-commons').pathUtils;
 const { body } = require('express-validator/check');
 const ErrorV3 = require('../../models/vo/error-apiv3');
 
-
 const router = express.Router();
 
 /**
@@ -171,7 +170,7 @@ module.exports = (crowi) => {
    */
   router.post('/', accessTokenParser, loginRequiredStrictly, csrf, validator.createPage, apiV3FormValidator, async(req, res) => {
     const {
-      body, grant, grantUserGroupId, pageTags, overwriteScopesOfDescendants, isSlackEnabled, slackChannels, socketClientId,
+      body, grant, grantUserGroupId, overwriteScopesOfDescendants, isSlackEnabled, slackChannels, socketClientId, pageTags,
     } = req.body;
 
     let { path } = req.body;