Manuel sort number 0 accepted

Fixes: #3859
This commit is contained in:
Martin Filser 2021-06-13 10:39:44 +02:00
parent 33cdb906e2
commit f2fcfd6a47

View file

@ -370,7 +370,7 @@ BlazeComponent.extendComponent({
const sort = parseFloat(this.currentComponent()
.getValue()
.trim());
if (sort) {
if (!Number.isNaN(sort)) {
let card = this.data();
card.move(card.boardId, card.swimlaneId, card.listId, sort);
}