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

ref: Little refactoring

This commit is contained in:
Maksim Eltyshev 2023-01-08 22:10:41 +01:00
parent 58eda7d555
commit 6f79fc45eb
8 changed files with 14 additions and 17 deletions

View file

@ -3,7 +3,7 @@ const valuesValidator = (value) => {
return false;
}
if (!_.isFinite(value.position)) {
if (!_.isUndefined(value.position) && !_.isFinite(value.position)) {
return false;
}

View file

@ -99,7 +99,7 @@ module.exports = {
throw 'userMustBePresent';
}
if (!_.isNil(values.position)) {
if (!_.isUndefined(values.position)) {
const boardId = values.boardId || inputs.record.boardId;
const listId = values.listId || inputs.record.listId;