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

ref: Little refactoring

This commit is contained in:
Maksim Eltyshev 2023-01-08 22:10:41 +01:00
parent 6021d67a00
commit b58b91baa1
8 changed files with 14 additions and 17 deletions

View file

@ -6,11 +6,11 @@ const valuesValidator = (value) => {
return false;
}
if (value.background && !_.isPlainObject(value.background)) {
if (!_.isNil(value.background) && !_.isPlainObject(value.background)) {
return false;
}
if (value.backgroundImage && !_.isPlainObject(value.backgroundImage)) {
if (!_.isNil(value.backgroundImage) && !_.isPlainObject(value.backgroundImage)) {
return false;
}