fix: dashboard loads
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user