changeset 4003:5d4edf268aec

if no bottlenck is given the update bottleneck filter should not query the geoserver
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 18 Jul 2019 18:14:03 +0200
parents eb11ada33fa7
children 79adff625ed8
files client/src/components/map/Map.vue
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/map/Map.vue	Thu Jul 18 17:33:18 2019 +0200
+++ b/client/src/components/map/Map.vue	Thu Jul 18 18:14:03 2019 +0200
@@ -145,8 +145,8 @@
   },
   methods: {
     updateBottleneckFilter(bottleneck_id, datestr) {
+      if (!bottleneck_id) return;
       const exists = bottleneck_id != "does_not_exist";
-
       if (exists) {
         this.layers
           .get("BOTTLENECKISOLINE")