mirror of
https://github.com/plankanban/planka.git
synced 2025-12-16 09:13:18 +03:00
ref: Little refactoring
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user