diff --git a/public/app/plugins/panel/geomap/editor/MapViewEditor.tsx b/public/app/plugins/panel/geomap/editor/MapViewEditor.tsx index 121df8c21c9..b0058432e3a 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) {