Fix sorting bug when dragging token from tokens list

This commit is contained in:
Mitchell McCaffrey 2020-08-28 15:17:52 +10:00
parent 9bc69a18e8
commit 7f7471b1e9

View File

@ -212,12 +212,14 @@ function Map({
return bWeight - aWeight;
} else if (
draggingTokenOptions &&
draggingTokenOptions.dragging &&
draggingTokenOptions.tokenState.id === a.id
) {
// If dragging token a move above
return 1;
} else if (
draggingTokenOptions &&
draggingTokenOptions.dragging &&
draggingTokenOptions.tokenState.id === b.id
) {
// If dragging token b move above