mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 09:13:20 +03:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
@@ -6,8 +6,17 @@ module.exports = {
|
||||
},
|
||||
values: {
|
||||
type: 'json',
|
||||
custom: (value) =>
|
||||
_.isPlainObject(value) && (_.isUndefined(value.position) || _.isFinite(value.position)),
|
||||
custom: (value) => {
|
||||
if (!_.isPlainObject(value)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_.isUndefined(value.position) && !_.isFinite(value.position)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
request: {
|
||||
|
||||
Reference in New Issue
Block a user