From ba6c74b2d64a33f327331f4808db857816164d75 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 27 Jan 2021 11:07:36 +0100 Subject: [PATCH] Merge pull request #3599 from overleaf/ae-fetch-json-export Remove default fetchJSON export GitOrigin-RevId: e5b1551c3fe0c0f8a4d95574117263667be04fed --- services/web/frontend/js/infrastructure/fetch-json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/infrastructure/fetch-json.js b/services/web/frontend/js/infrastructure/fetch-json.js index 7c50da79f1..ecd873bf34 100644 --- a/services/web/frontend/js/infrastructure/fetch-json.js +++ b/services/web/frontend/js/infrastructure/fetch-json.js @@ -21,7 +21,7 @@ export function deleteJSON(path, options) { return fetchJSON(path, { ...options, method: 'DELETE' }) } -export default function fetchJSON( +function fetchJSON( path, { body = {}, headers = {}, method = 'GET', ...otherOptions } ) {