diff --git a/src/modules/drawing/components/DrawingInteractions.vue b/src/modules/drawing/components/DrawingInteractions.vue index 10c0825bf..7653448d6 100644 --- a/src/modules/drawing/components/DrawingInteractions.vue +++ b/src/modules/drawing/components/DrawingInteractions.vue @@ -73,7 +73,7 @@ function removeLastPoint() { } function featureSelected(feature) { - if (feature.getGeometry().getType() === 'LineString') { + if (feature?.getGeometry()?.getType() === 'LineString') { selectedLineFeature.value = feature } else { selectedLineFeature.value = null