Mercurial > gemma
changeset 2744:7dcca9649a61
client: waterlevel diagram: use selectedGaugeISRS to load waterlevels
instead of using the selectedGauge getter which is based on the same selectedGaugeISRS property anyway.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 20 Mar 2019 12:49:52 +0100 |
parents | 4063adda3095 |
children | d2896bb852e7 |
files | client/src/store/gauges.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/gauges.js Wed Mar 20 12:10:42 2019 +0100 +++ b/client/src/store/gauges.js Wed Mar 20 12:49:52 2019 +0100 @@ -88,14 +88,14 @@ }); }); }, - loadWaterlevels({ state, getters, commit }) { + loadWaterlevels({ state, commit }) { // include the last day let dateTo = new Date(state.dateTo.getTime() + 86400); return new Promise((resolve, reject) => { HTTP.get( `/data/waterlevels/${ - getters.selectedGauge.properties.isrs_code + state.selectedGaugeISRS }?from=${state.dateFrom .toISOString() .substr(0, 23)}&to=${dateTo.toISOString().substr(0, 23)}`,