diff --git a/jsx/src/util/jhapiUtil.js b/jsx/src/util/jhapiUtil.js index 8c8bb005..99861057 100644 --- a/jsx/src/util/jhapiUtil.js +++ b/jsx/src/util/jhapiUtil.js @@ -8,7 +8,7 @@ export const jhapiRequest = (endpoint, method, data) => { if (xsrfToken) { // add xsrf token to url parameter var sep = endpoint.indexOf("?") === -1 ? "?" : "&"; - suffix = sep + "_xsrf=" + xsrf_token; + suffix = sep + "_xsrf=" + xsrfToken; } return fetch(api_url + endpoint + suffix, { method: method,