Просмотр исходного кода

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

fix: page wide view not working
Haku Mizuki 3 лет назад
Родитель
Сommit
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> {
   async create(path: string, body: string, user, options: PageCreateOptions = {}): Promise<PageDocument> {
     const Page = mongoose.model('Page') as unknown as PageModel;
     const Page = mongoose.model('Page') as unknown as PageModel;
 
 
-    const expandContentWidth = this.crowi.configManager.getConfig('crowi', 'customize:isContainerFluid');
-
     // Switch method
     // Switch method
     const isV5Compatible = this.crowi.configManager.getConfig('crowi', 'app:isV5Compatible');
     const isV5Compatible = this.crowi.configManager.getConfig('crowi', 'app:isV5Compatible');
     if (!isV5Compatible) {
     if (!isV5Compatible) {
@@ -3512,9 +3510,6 @@ class PageService {
       const parent = await this.getParentAndFillAncestorsByUser(user, path);
       const parent = await this.getParentAndFillAncestorsByUser(user, path);
       page.parent = parent._id;
       page.parent = parent._id;
     }
     }
-    if (expandContentWidth != null) {
-      page.expandContentWidth = expandContentWidth;
-    }
     // Save
     // Save
     let savedPage = await page.save();
     let savedPage = await page.save();