fix: page schema validation for extra field (#2097)
This commit is contained in:
parent
969e7e2fe6
commit
4bc284b06e
@ -856,8 +856,8 @@ module.exports = class Page extends Model {
|
||||
creatorName: page.creatorName,
|
||||
description: page.description,
|
||||
extra: {
|
||||
css: page.extra ? page.extra.css : '',
|
||||
js: page.extra ? page.extra.js : ''
|
||||
css: _.get(page, 'extra.css', ''),
|
||||
js: _.get(page, 'extra.js', '')
|
||||
},
|
||||
isPrivate: page.isPrivate === 1 || page.isPrivate === true,
|
||||
isPublished: page.isPublished === 1 || page.isPublished === true,
|
||||
|
Loading…
Reference in New Issue
Block a user