From 689e3fa17e9c68849aa862fc531dbfb332af55e4 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 26 Sep 2019 15:42:21 +0200 Subject: [PATCH] do not use function as fetch argument, use the resulting object This should fix the login problem "Error: e._links.me is undefined" on older firefox browsers such as 56.0.2 --- scm-ui-components/packages/ui-components/src/apiclient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui-components/packages/ui-components/src/apiclient.js b/scm-ui-components/packages/ui-components/src/apiclient.js index 2ad0cd1f9f..a656246c95 100644 --- a/scm-ui-components/packages/ui-components/src/apiclient.js +++ b/scm-ui-components/packages/ui-components/src/apiclient.js @@ -46,7 +46,7 @@ export function createUrl(url: string) { class ApiClient { get(url: string): Promise { - return fetch(createUrl(url), applyFetchOptions).then(handleFailure); + return fetch(createUrl(url), applyFetchOptions({})).then(handleFailure); } post(url: string, payload: any, contentType: string = "application/json") {