Fix sorting bug when dragging token from tokens list
This commit is contained in:
parent
9bc69a18e8
commit
7f7471b1e9
@ -212,12 +212,14 @@ function Map({
|
|||||||
return bWeight - aWeight;
|
return bWeight - aWeight;
|
||||||
} else if (
|
} else if (
|
||||||
draggingTokenOptions &&
|
draggingTokenOptions &&
|
||||||
|
draggingTokenOptions.dragging &&
|
||||||
draggingTokenOptions.tokenState.id === a.id
|
draggingTokenOptions.tokenState.id === a.id
|
||||||
) {
|
) {
|
||||||
// If dragging token a move above
|
// If dragging token a move above
|
||||||
return 1;
|
return 1;
|
||||||
} else if (
|
} else if (
|
||||||
draggingTokenOptions &&
|
draggingTokenOptions &&
|
||||||
|
draggingTokenOptions.dragging &&
|
||||||
draggingTokenOptions.tokenState.id === b.id
|
draggingTokenOptions.tokenState.id === b.id
|
||||||
) {
|
) {
|
||||||
// If dragging token b move above
|
// If dragging token b move above
|
||||||
|
Loading…
Reference in New Issue
Block a user