1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00

Fix removing background

This commit is contained in:
Maksim Eltyshev 2020-06-04 17:52:30 +05:00
parent 99d9ab4a9e
commit d22580cec0

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