Skip to content

Commit

Permalink
Check target in sorter before move. Fixes #2498
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed May 21, 2021
1 parent 90e6561 commit 67c1f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Sorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ export default Backbone.View.extend({
}
}

if (this.moved) {
if (this.moved && target) {
const toMove = this.toMove;
const toMoveArr = isArray(toMove) ? toMove : toMove ? [toMove] : [src];
toMoveArr.forEach(model => {
Expand Down

0 comments on commit 67c1f3c

Please sign in to comment.