diff client/src/application/Morphtool.vue @ 906:dd81ebefc50d

morphtool refactored if clause
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 02 Oct 2018 16:52:58 +0200
parents 62a30a78ac2f
children 21ab63347a6c
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;
           }