แก้คำนำหน้าชื่อเป็น null

This commit is contained in:
oat_dev 2024-06-14 14:11:29 +07:00
parent 7fa1129457
commit 371fc43282
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.prefix}${row.firstName} ${row.lastName}`;
return `${row.prefix ?? ""}${row.firstName} ${row.lastName}`;
},
},
{