From d5bc135d9b7da9d5e92a037a6cd5cb279e9b933d Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 30 Jan 2023 15:42:07 +0100 Subject: [PATCH] fix xsrfToken in react caught now that we have browser tests --- jsx/src/util/jhapiUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,