Fix issue 55626 (#55636) (#56482)

Reset the mapping table for Dynamic Geojson

(cherry picked from commit c1d6df4eb7)

Co-authored-by: Nicolas Janicaud Gondoin <112407974+janicaud@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-06 12:36:56 -04:00
committed by GitHub
co-authored by Nicolas Janicaud Gondoin
parent d797054848
commit 42c56c3186
@@ -172,6 +172,7 @@ export const dynamicGeoJSONLayer: MapLayerRegistryItem<DynamicGeoJSONMapperConfi
if (frame) {
const field = findField(frame, config.idField);
if (field) {
idToIdx.clear();
field.values.toArray().forEach((v, i) => idToIdx.set(v, i));
}