fixes: loads search & locations load

This commit is contained in:
Alexandro Uc Santos
2024-11-09 16:34:47 -06:00
parent 23e691c2e3
commit d56230a9a9
4 changed files with 12 additions and 11 deletions

View File

@@ -17,7 +17,9 @@ export default function useSearchLoads() {
}
try {
const endpoint = `/v1/loads/find${filterStr}&$sort[createdAt]=-1`;
console.log(endpoint);
const {data} = await api.get(endpoint);
console.log(data);
total.value = data.total;
loads.value = data.data;
} catch (error) {