diff --git a/jsx/src/util/withAPI.js b/jsx/src/util/withAPI.js index 8b5b68ed..e8f05667 100644 --- a/jsx/src/util/withAPI.js +++ b/jsx/src/util/withAPI.js @@ -7,9 +7,10 @@ const withAPI = withProps(() => ({ data.json() ), updateGroups: (offset, limit) => - jhapiRequest(`/groups?offset=${offset}&limit=${limit}`, "GET").then( - (data) => data.json() - ), + jhapiRequest( + `/groups?offset=${offset}&limit=${limit}`, + "GET" + ).then((data) => data.json()), shutdownHub: () => jhapiRequest("/shutdown", "POST"), startServer: (name) => jhapiRequest("/users/" + name + "/server", "POST"), stopServer: (name) => jhapiRequest("/users/" + name + "/server", "DELETE"),