forked from mirrors/homebox
fix: refactoring errors (#359)
* #352 - require one date to be set to save * fix many type regressions
This commit is contained in:
parent
4a8ba6231d
commit
97fb94d231
22 changed files with 164 additions and 289 deletions
|
@ -22,7 +22,7 @@ export const useLocationStore = defineStore("locations", {
|
|||
return;
|
||||
}
|
||||
|
||||
this.parents = result.data.items;
|
||||
this.parents = result.data;
|
||||
});
|
||||
}
|
||||
return state.parents ?? [];
|
||||
|
@ -35,7 +35,7 @@ export const useLocationStore = defineStore("locations", {
|
|||
return;
|
||||
}
|
||||
|
||||
this.Locations = result.data.items;
|
||||
this.Locations = result.data;
|
||||
});
|
||||
}
|
||||
return state.Locations ?? [];
|
||||
|
@ -48,7 +48,7 @@ export const useLocationStore = defineStore("locations", {
|
|||
return result;
|
||||
}
|
||||
|
||||
this.parents = result.data.items;
|
||||
this.parents = result.data;
|
||||
return result;
|
||||
},
|
||||
async refreshChildren(): ReturnType<LocationsApi["getAll"]> {
|
||||
|
@ -57,7 +57,7 @@ export const useLocationStore = defineStore("locations", {
|
|||
return result;
|
||||
}
|
||||
|
||||
this.Locations = result.data.items;
|
||||
this.Locations = result.data;
|
||||
return result;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue