fix markers order - MapPage

This commit is contained in:
Dawid Wysokiński 2020-12-29 23:57:18 +01:00
parent c758e8a5b4
commit f88077f63a

View File

@ -57,7 +57,7 @@ const useMarkers = <T extends HasID, VariablesT>(
if (!id || !color || isNil(index)) {
return;
}
let indexInt = parseInt(id, 10);
let indexInt = parseInt(index, 10);
if (isNaN(indexInt)) {
indexInt = 0;
}
@ -86,6 +86,7 @@ const useMarkers = <T extends HasID, VariablesT>(
colorByID: { [key: number]: string },
indexByID: { [key: number]: number }
) => {
console.log(indexByID);
return client
.query<Record<string, List<T[]>>, VariablesT>({
query: opts.query,