Mercurial > gemma
changeset 1059:51d412a79e4f crossprofile
omit render while clearing profile
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 17:19:50 +0200 |
parents | 5a43d5602d14 |
children | 907321455f39 |
files | client/src/fairway/Fairwayprofile.vue |
diffstat | 1 files changed, 13 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/fairway/Fairwayprofile.vue Thu Oct 25 16:58:03 2018 +0200 +++ b/client/src/fairway/Fairwayprofile.vue Thu Oct 25 17:19:50 2018 +0200 @@ -208,17 +208,19 @@ height, width }); - this.drawProfile({ - graph, - xScale, - yScaleRight, - currentData, - height, - width, - color: GROUND_COLOR, - strokeColor: "black", - opacity: 1 - }); + if (currentData) { + this.drawProfile({ + graph, + xScale, + yScaleRight, + currentData, + height, + width, + color: GROUND_COLOR, + strokeColor: "black", + opacity: 1 + }); + } if (additionalData) { this.drawProfile({ graph,