Update fireEngine.ts

This commit is contained in:
Nicolas 2024-10-12 18:18:38 -03:00
parent 35b15f1ee6
commit af06b42cb2

View File

@ -42,11 +42,12 @@ export async function fireEngineMap(
url: `${process.env.FIRE_ENGINE_BETA_URL}/search`,
headers: {
"Content-Type": "application/json",
"X-Disable-Cache": "true"
},
data: data,
};
const response = await axios(config);
if (response && response) {
if (response && response.data) {
return response.data;
} else {
return [];