diff client/src/components/fairway/Fairwayprofile.vue @ 4773:af83ff003ebf

fairway_profile: fix offscreen rendering bug.
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 21 Oct 2019 11:59:14 +0200
parents 67a5de15490b
children 75e6ec39a0b7
line wrap: on
line diff
--- a/client/src/components/fairway/Fairwayprofile.vue	Mon Oct 21 11:51:52 2019 +0200
+++ b/client/src/components/fairway/Fairwayprofile.vue	Mon Oct 21 11:59:14 2019 +0200
@@ -242,6 +242,7 @@
         : this.bottleneck.get("gm_waterlevel");
     },
     refWaterlevel() {
+      if (!this.selectedSurvey) return 0;
       return this.selectedSurvey.waterlevel_value;
     }
   },