Move item to the last position stays there
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-10-15 22:47:51 +02:00
parent 701cd7b29d
commit c4bd5107eb

View File

@ -123,7 +123,11 @@ function Store(inputData) {
values[newId] = item
id = newId
}
idList.splice(index, 0, id)
if (!beforeId) {
idList.push(id)
} else {
idList.splice(index, 0, id)
}
changed = true
return id
}