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;
|
||||
} 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
|
||||
|
Loading…
Reference in New Issue
Block a user