refactor: handle data is null

This commit is contained in:
Thanaphon Frappet 2024-10-29 09:16:18 +07:00
parent c9035cd878
commit 809d3e5b33

View file

@ -40,6 +40,7 @@ defineEmits<{
(e: 'view', data: any): void;
(e: 'edit', data: any): void;
(e: 'delete', data: any): void;
(e: 'history', data: any): void;
(e: 'toggleStatus', data: any): void;
}>();
</script>
@ -208,8 +209,8 @@ defineEmits<{
<div class="col app-text-muted">
{{
$i18n.locale === 'eng'
? `${props.row.customerBranch.registerNameEN}`
: `${props.row.customerBranch.registerName}`
? `${props.row.customerBranch.registerNameEN || ''}`
: `${props.row.customerBranch.registerName || ''}`
}}
</div>
</div>