diff client/src/store/bottlenecks.js @ 5578:1d847bc21bb7 surveysperbottleneckid

Available Fairway Depth: Change evaluation of Limiting Factors from objnam to bottleneck_id
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 14 Feb 2022 09:13:09 +0100
parents 973c71c07bb2
children 215e6ba9651b
line wrap: on
line diff
--- a/client/src/store/bottlenecks.js	Tue Feb 08 16:06:48 2022 +0100
+++ b/client/src/store/bottlenecks.js	Mon Feb 14 09:13:09 2022 +0100
@@ -38,7 +38,7 @@
     limitingFactorsPerBottleneck: state => {
       if (state.bottlenecks.length === 0) return {};
       return state.bottlenecks.reduce((o, n) => {
-        o[n.properties.objnam] = n.properties.limiting;
+        o[n.properties.bottleneck_id] = n.properties.limiting;
         return o;
       }, {});
     },