add: search vehicles view & fixes: bugs state
This commit is contained in:
@@ -318,14 +318,14 @@ export const useCompanyStore = defineStore('company', () => {
|
||||
|
||||
const createLocationCompany = async(formData, localData) => {
|
||||
const data = await createLocation(formData);
|
||||
if(data) {
|
||||
if(data?.data) {
|
||||
locations.value.unshift({
|
||||
...data,
|
||||
...data?.data,
|
||||
...localData
|
||||
});
|
||||
locationsTotal.value++;
|
||||
locationsLoads.value.unshift({
|
||||
...data,
|
||||
...data?.data,
|
||||
...localData
|
||||
})
|
||||
return 'success';
|
||||
|
||||
Reference in New Issue
Block a user