From ff812fd11b5b8bbe7f625520fb5174d01a114b1a Mon Sep 17 00:00:00 2001 From: rjt Date: Sun, 8 Oct 2023 22:06:43 -0400 Subject: [PATCH] fix: template call to valhalla service (#198) --- src/Controls/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controls/index.jsx b/src/Controls/index.jsx index e24de04..9f3b377 100644 --- a/src/Controls/index.jsx +++ b/src/Controls/index.jsx @@ -22,6 +22,7 @@ import { fetchReverseGeocodeIso, updateIsoSettings, } from 'actions/isochronesActions' +import VALHALLA_OSM_URL from 'utils/valhalla' const pairwise = (arr, func) => { let cnt = 0 @@ -42,7 +43,7 @@ class MainControl extends React.Component { } async getLastUpdate() { - const response = await fetch('https://valhalla1.openstreetmap.de/status') + const response = await fetch(`${VALHALLA_OSM_URL}/status`) const data = await response.json() this.setState({ lastUpdate: new Date(data.tileset_last_modified * 1000),