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 f85d499bbf
commit c43b4ea8ad

View file

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