Mercurial > gemma
comparison client/src/morphtool/Morphtool.vue @ 1002:99d27dc9db5e persistent-import-queue
fix: Morphtool works again
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 22 Oct 2018 17:34:59 +0200 |
parents | 26ca04caa330 |
children | 9d4af4b1c5c8 |
comparison
equal
deleted
inserted
replaced
1001:e2860eff5d03 | 1002:99d27dc9db5e |
---|---|
95 computed: { | 95 computed: { |
96 ...mapGetters("application", ["drawMode"]), | 96 ...mapGetters("application", ["drawMode"]), |
97 ...mapState("identifystore", ["identifiedFeatures"]), | 97 ...mapState("identifystore", ["identifiedFeatures"]), |
98 ...mapState("morphstore", ["selectedMorph"]), | 98 ...mapState("morphstore", ["selectedMorph"]), |
99 selectedBottleneck: function() { | 99 selectedBottleneck: function() { |
100 if (this.identifiedFeatures) { | 100 if (this.identifiedFeatures && !this.drawMode) { |
101 for (let feature of this.identifiedFeatures) { | 101 for (let feature of this.identifiedFeatures) { |
102 let id = feature.getId(); | 102 let id = feature.getId(); |
103 // RegExp.prototype.test() works with number, str and undefined | 103 // RegExp.prototype.test() works with number, str and undefined |
104 if (/^bottlenecks\./.test(id)) { | 104 if (/^bottlenecks\./.test(id)) { |
105 this.$store.commit("morphstore/setSelectedMorph", null); | 105 this.$store.commit("morphstore/setSelectedMorph", null); |