Skip to content
Snippets Groups Projects
Commit c41f07b1 authored by Janne Alatalo's avatar Janne Alatalo :neutral_face:
Browse files

Add temporary fix for traffic flow cors problem

parent 9c1a8467
No related branches found
No related tags found
No related merge requests found
Pipeline #4040 passed
...@@ -28,8 +28,9 @@ export function get_lam_points(api_url, set_state) { ...@@ -28,8 +28,9 @@ export function get_lam_points(api_url, set_state) {
} }
export function get_free_flow_speeds(api_url, set_state) { export function get_free_flow_speeds(api_url, set_state) {
return fetch(`${api_url}/api/v1/data/free-flow-speeds`) return fetch("/free-flow-speeds.json")
.then((res) => res.json()) .then((res) => res.text())
.then((t) => JSON.parse(t))
.then((json) => { .then((json) => {
const tms_data = json.tmsFreeFlowSpeeds; const tms_data = json.tmsFreeFlowSpeeds;
set_state((prevState) => { set_state((prevState) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment