# HG changeset patch # User Thomas Junk # Date 1544783090 -3600 # Node ID 2888bfacd331a1c006ab9d033745be7370bb6890 # Parent af17c29df8f022a07863653876c5d975adaabbad fairwayprofile: do not try to render fairwayprofile without dimensions diff -r af17c29df8f0 -r 2888bfacd331 client/src/components/fairway/Fairwayprofile.vue --- a/client/src/components/fairway/Fairwayprofile.vue Fri Dec 14 11:20:08 2018 +0100 +++ b/client/src/components/fairway/Fairwayprofile.vue Fri Dec 14 11:24:50 2018 +0100 @@ -212,6 +212,7 @@ height, width ); + if (!this.height || !this.width) return; // do not try to render when height and width are unknown this.drawWaterlevel({ graph, xScale, yScaleRight, height }); this.drawLabels({ graph, height }); this.drawFairway({ graph, xScale, yScaleRight });