fix: ui actions in proposals & load publish

This commit is contained in:
Alexandro Uc Santos
2025-07-25 20:57:35 -06:00
parent ea41ec3e0c
commit ba630fb1de
5 changed files with 49 additions and 12 deletions

View File

@@ -53,7 +53,7 @@
<VehicleInfo
v-if="load.vehicle"
:vehicle="load.vehicle"
:driver="load.driver"
:driver="load?.driver"
/>
</div>
</div>

View File

@@ -14,8 +14,6 @@ import { useI18n } from 'vue-i18n';
}
})
console.log(props.vehicle)
const { t } = useI18n()
const isShow = ref(false);
@@ -26,10 +24,13 @@ import { useI18n } from 'vue-i18n';
const driver = computed(() => {
if(props?.driver) {
return !props?.driver ? 'No definido'
: props?.driver.first_name + ' ' + props?.driver.last_name
return !props?.driver
? 'No definido'
: props?.driver?.first_name + ' ' + props?.driver?.last_name
} else {
return props.vehicle.driver.first_name + ' ' + props.vehicle.driver.last_name;
return !props.vehicle?.driver?.first_name
? 'No definido'
: props.vehicle?.driver?.first_name + ' ' + props.vehicle?.driver?.last_name;
}
});
</script>