Fix removing background

pull/14/head
Maksim Eltyshev 6 years ago
parent 99d9ab4a9e
commit d22580cec0

@ -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,
},

Loading…
Cancel
Save