Unverified Commit 4bc284b0 authored by Regev Brody's avatar Regev Brody Committed by GitHub

fix: page schema validation for extra field (#2097)

parent 969e7e2f
...@@ -856,8 +856,8 @@ module.exports = class Page extends Model { ...@@ -856,8 +856,8 @@ module.exports = class Page extends Model {
creatorName: page.creatorName, creatorName: page.creatorName,
description: page.description, description: page.description,
extra: { extra: {
css: page.extra ? page.extra.css : '', css: _.get(page, 'extra.css', ''),
js: page.extra ? page.extra.js : '' js: _.get(page, 'extra.js', '')
}, },
isPrivate: page.isPrivate === 1 || page.isPrivate === true, isPrivate: page.isPrivate === 1 || page.isPrivate === true,
isPublished: page.isPublished === 1 || page.isPublished === true, isPublished: page.isPublished === 1 || page.isPublished === true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment