Fix wrong typedef
This commit is contained in:
parent
a572d710b3
commit
af238ff7e2
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ const getRouteByCategory = async (categoryId: number) => {
|
|||
}
|
||||
|
||||
const getRoute = async (routeId: number) => {
|
||||
let data = [];
|
||||
let data = {};
|
||||
if (import.meta.env.PROD) {
|
||||
const response = await fetch(`${API_URL}/route/${routeId}`);
|
||||
const json = await response.json();
|
||||
|
|
Loading…
Reference in a new issue