Mercurial > gemma
changeset 2208:763c520a7717 pdf-export
fix: bottleneckselection via identifytool
In case the user has identifyied a bottleneck the bottleneck was selected for him automatically.
In order to identify a bottleneck, the id was tested against ^bottlenecks\.
The id has changed from "bottlenecks." to "bottlenecks_" which caused the defect.
We test now against ^bottlenecks in the hope to identify a bottleneck correct.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 06 Feb 2019 11:20:23 +0100 |
parents | da902f0dac88 |
children | 7ef7c3fd7383 |
files | client/src/store/map.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/map.js Wed Feb 06 09:56:36 2019 +0100 +++ b/client/src/store/map.js Wed Feb 06 11:20:23 2019 +0100 @@ -529,7 +529,7 @@ for (let feature of features) { let id = feature.getId(); // RegExp.prototype.test() works with number, str and undefined - if (/^bottlenecks\./.test(id)) { + if (/^bottlenecks/.test(id)) { if ( rootState.bottlenecks.selectedBottleneck != feature.get("objnam")