From 43878ff05f29e306d26c4a781f6082d9fb09b23e Mon Sep 17 00:00:00 2001 From: nikki-kiga <42276368+nikki-kiga@users.noreply.github.com> Date: Tue, 19 Oct 2021 19:31:33 -0700 Subject: [PATCH] Geomap: Avoid exceptions when missing data and values (heatmap and zoom settings) --- public/app/plugins/panel/geomap/editor/MapViewEditor.tsx | 8 ++++---- public/app/plugins/panel/geomap/layers/data/heatMap.tsx | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/public/app/plugins/panel/geomap/editor/MapViewEditor.tsx b/public/app/plugins/panel/geomap/editor/MapViewEditor.tsx index 4da235e68cb..bfa6fb1a4cc 100644 --- a/public/app/plugins/panel/geomap/editor/MapViewEditor.tsx +++ b/public/app/plugins/panel/geomap/editor/MapViewEditor.tsx @@ -49,9 +49,9 @@ export const MapViewEditor: FC = { vectorLayer.getSource().removeFeature(feature); }); + if (!frame) { + return; + } // Get data points (latitude and longitude coordinates) const info = dataFrameToPoints(frame, matchers); if (info.warning) {