diff client/src/components/Statistics.vue @ 3175:296392d4539c

client: statistics dialog: fix resetting selectedEntry
author Markus Kottlaender <markus@intevation.de>
date Mon, 06 May 2019 17:45:24 +0200
parents aeb9d6fc640a
children 5ec34e08b01d
line wrap: on
line diff
--- a/client/src/components/Statistics.vue	Mon May 06 17:39:55 2019 +0200
+++ b/client/src/components/Statistics.vue	Mon May 06 17:45:24 2019 +0200
@@ -145,7 +145,7 @@
       this.setSelectedBottleneck();
     },
     type() {
-      if (this.selectedBottleneck) {
+      if (this.type === this.$options.BOTTLENECKS && this.selectedBottleneck) {
         this.setSelectedBottleneck();
       } else {
         this.selectedEntry = null;