refs #5066 fix vehicle res.data
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-06-07 08:30:37 +02:00
parent 738b04af4c
commit cc27d1fa97
1 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ class Controller extends Section {
super($element, $);
this.$http.get(`UserConfigs/getUserConfig`)
.then(res => {
if (res && res.data) {
if (res.data) {
this.$http.post(`Vehicles/sorted`, {warehouseFk: res.data.warehouseFk})
.then(res => {
if (res && res.data)
if (res.data)
this.vehicles = res.data;
});
}