浏览代码

Merge pull request #6911 from weseek/fix/108649-fix-content-width-initialize

fix: page wide view not working
Haku Mizuki 3 年之前
父节点
当前提交
dab147ceb8
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      packages/app/src/server/service/page.ts

+ 0 - 5
packages/app/src/server/service/page.ts

@@ -3464,8 +3464,6 @@ class PageService {
   async create(path: string, body: string, user, options: PageCreateOptions = {}): Promise<PageDocument> {
     const Page = mongoose.model('Page') as unknown as PageModel;
 
-    const expandContentWidth = this.crowi.configManager.getConfig('crowi', 'customize:isContainerFluid');
-
     // Switch method
     const isV5Compatible = this.crowi.configManager.getConfig('crowi', 'app:isV5Compatible');
     if (!isV5Compatible) {
@@ -3512,9 +3510,6 @@ class PageService {
       const parent = await this.getParentAndFillAncestorsByUser(user, path);
       page.parent = parent._id;
     }
-    if (expandContentWidth != null) {
-      page.expandContentWidth = expandContentWidth;
-    }
     // Save
     let savedPage = await page.save();