changeset 906:dd81ebefc50d

morphtool refactored if clause
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 02 Oct 2018 16:52:58 +0200
parents 2990a878b16b
children 67b334aaff39
files client/src/application/Morphtool.vue
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/application/Morphtool.vue	Tue Oct 02 16:43:24 2018 +0200
+++ b/client/src/application/Morphtool.vue	Tue Oct 02 16:52:58 2018 +0200
@@ -98,7 +98,7 @@
       if (this.identifiedFeatures) {
         for (let feature of this.identifiedFeatures) {
           let id = feature.getId();
-          if (id && id.replace(/[.][^.]*$/, "") === "bottlenecks") {
+          if (/bottlenecks/.test(id)) {
             this.$store.commit("mapstore/setSelectedMorph", null);
             return feature;
           }