fix: ตรวจค่า undefined
This commit is contained in:
parent
d3456493e9
commit
ab8d6e4e4d
1 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ async function fetchList() {
|
||||||
: 'INACTIVE',
|
: 'INACTIVE',
|
||||||
});
|
});
|
||||||
if (result) {
|
if (result) {
|
||||||
currentCustomerName.value = result.result[0].customer?.customerName ?? '';
|
if (currentStatus.value !== 'INACTIVE') {
|
||||||
|
currentCustomerName.value = result.result[0].customer?.customerName ?? '';
|
||||||
|
}
|
||||||
maxPageBranch.value = Math.ceil(result.total / pageSizeBranch.value);
|
maxPageBranch.value = Math.ceil(result.total / pageSizeBranch.value);
|
||||||
branch.value = result.result;
|
branch.value = result.result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue