From b152003f28cdbcb3388858ffc30979254d3d3bc1 Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Thu, 9 Jan 2025 13:05:56 +0700 Subject: [PATCH] PB-1213: Fix unhandled null. --- src/modules/drawing/components/DrawingInteractions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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