Geomap: clear features when no-data is returned (#44748)

This commit is contained in:
Ryan McKinley 2022-02-01 22:02:43 -08:00 committed by GitHub
parent 58a71c7e91
commit d8df08ce5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,7 @@ export const markersLayer: MapLayerRegistryItem<MarkersConfig> = {
legend: legend,
update: (data: PanelData) => {
if (!data.series?.length) {
source.clear();
return; // ignore empty
}