fix: dashboard loads

This commit is contained in:
Alexandro Uc Santos
2024-11-02 19:05:33 -06:00
parent e0f551abb2
commit 23e691c2e3

View File

@@ -18,7 +18,7 @@ export const useLoadsStore = defineStore('load', () => {
const companyid = localStorage.getItem('id');
if(loadsDashboard.value.length <= 0 || reload) {
try {
const endpoint = `/v1/loads/find?elements=100`;
const endpoint = `/v1/loads/find?company=${companyid}`;
const {data} = await api.get(endpoint);
loadsDashboard.value = data.data;
} catch (error) {