Mercurial > gemma
changeset 2133:602c2096c078
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 | 7a2eedc182f7 |
children | 8ad8ce85fcbf |
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 Tue Feb 05 16:50:59 2019 +0100 +++ b/client/src/store/map.js Wed Feb 06 11:20:23 2019 +0100 @@ -583,7 +583,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")