Fix removing background

This commit is contained in:
Maksim Eltyshev
2020-06-04 17:52:30 +05:00
parent f85d499bbf
commit c43b4ea8ad

View File

@@ -11,7 +11,9 @@ module.exports = {
type: 'json',
custom: (value) =>
_.isPlainObject(value) &&
(_.isUndefined(value.background) || _.isPlainObject(value.background)) &&
(_.isUndefined(value.background) ||
_.isNull(value.background) ||
_.isPlainObject(value.background)) &&
(_.isUndefined(value.backgroundImage) || _.isNull(value.backgroundImage)),
required: true,
},