# HG changeset patch # User Sascha Wilde # Date 1589316910 -7200 # Node ID d855426a6e5d7ea1e821e51b51087bfce8366445 # Parent 8c44b518141a2a8ce4f1d8b84a64f6c13a82e863 Fixed frontend for sections and stretches in new FWA implementation. This fix is not very elegant, but at least it is correct. diff -r 8c44b518141a -r d855426a6e5d client/src/store/fairwayavailability.js --- a/client/src/store/fairwayavailability.js Tue May 12 22:35:33 2020 +0200 +++ b/client/src/store/fairwayavailability.js Tue May 12 22:55:10 2020 +0200 @@ -260,9 +260,16 @@ type } = options; let { from, to } = options; - let name = feature.hasOwnProperty("properties") - ? feature.properties.bottleneck_id - : feature.get("bottleneck_id"); + let name = ""; + if (type === TYPES.BOTTLENECK) { + name = feature.hasOwnProperty("properties") + ? feature.properties.bottleneck_id + : feature.get("bottleneck_id"); + } else { + name = feature.hasOwnProperty("properties") + ? feature.properties.name + : feature.get("objnam"); + } [from, to] = getIntervallBorders(from, to, frequency); let additionalParams = ""; let endpoint = type;