Skip to content

Commit

Permalink
Merge pull request #1189 from geoadmin/bug-pb-1213-fix-unhandled-null
Browse files Browse the repository at this point in the history
PB-1213: Fix unhandled null.
  • Loading branch information
ismailsunni authored Jan 9, 2025
2 parents 65fed51 + b152003 commit 15b3f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/drawing/components/DrawingInteractions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15b3f9a

Please # to comment.