Merge pull request #3861 from mfilser/manual_sort_number_0_accepted

Manuel sort number 0 accepted
This commit is contained in:
Lauri Ojansivu 2021-06-13 15:49:34 +03:00 committed by GitHub
commit 41848dd99e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}