Skip to content
Snippets Groups Projects
Commit ae3cb576 authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Eslinting for fetch API

parent 4606899d
No related branches found
No related tags found
1 merge request!141Setting the cache property to no-store for only the new time series call to...
......@@ -46,6 +46,8 @@
"Math": true,
"process": true,
"XMLHttpRequest": true,
"window": true
"window": true,
"fetch": true,
"Request": true
}
}
......@@ -91,10 +91,10 @@ export const fetchNewTimeSeries = async function({siteno, parameterCode=null, pe
}),
{
cache: 'no-store'
})
});
try {
const response = await fetch(request, {
method: 'GET',
method: 'GET'
});
if (response.status === 200) {
return await response.json();
......
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