# HG changeset patch # User Thomas Junk # Date 1557318940 -7200 # Node ID 0d76a0476a5b392fbaf4aeab6f755dd5369d24f1 # Parent 88c31298eba892ebc598c62f9385fd0bfbaad39e diagram_store: fix encodeURIComponent diff -r 88c31298eba8 -r 0d76a0476a5b client/src/store/diagram.js --- a/client/src/store/diagram.js Wed May 08 13:54:44 2019 +0200 +++ b/client/src/store/diagram.js Wed May 08 14:35:40 2019 +0200 @@ -64,9 +64,11 @@ loadAvailableFairwayDepth: ({ commit }, options) => { return new Promise((resolve, reject) => { const { feature, from, to, frequency } = options; - const URL = `/data/bottleneck/fairway-depth/${ + const start = encodeURIComponent("00:00:00+07:00"); + const end = encodeURIComponent("23:59:59+07:00"); + const URL = `/data/bottleneck/fairway-depth/${encodeURIComponent( feature.properties.name - }?from=${from}T00:00:00%2b07:00&to=${to}T23:59:59%2b07:00&mode=${frequency}`; + )}?from=${from}T${start}&to=${to}T${end}&mode=${frequency}`; HTTP.get(URL, { headers: { "X-Gemma-Auth": localStorage.getItem("token") } })