CEC-2654: Revert Map polls for current visible area (#222) (#223)

Co-authored-by: Alexander Andrews <aandrews@fiskerinc.com>
This commit is contained in:
Alexander Andrews
2022-10-24 17:31:26 -04:00
committed by GitHub
parent b45c70bd52
commit 58890ea40e
10 changed files with 45 additions and 324 deletions

View File

@@ -68,14 +68,13 @@ const vehiclesAPI = {
.then(fetchRespHandler)
.catch(errorHandler),
getLocations: async (token, mapLocationInfo) =>
getLocations: async (token) =>
fetch(`${API_ENDPOINT}/carslocations`, {
method: "POST",
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },
getAuthHeaderOptions(token)
),
body: JSON.stringify(mapLocationInfo)
})
.then(fetchRespHandler)
.catch(errorHandler),