mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
refactor(FE): Add initial balance row and normalize empty values
This commit is contained in:
@@ -364,7 +364,11 @@ const CustomerPaymentTab = () => {
|
||||
enableSorting: false,
|
||||
cell: (props) => {
|
||||
const value = props.row.original.vehicle_numbers;
|
||||
return Array.isArray(value) ? value.join(', ') : value || '-';
|
||||
return Array.isArray(value)
|
||||
? value.length > 0
|
||||
? value.join(', ')
|
||||
: '-'
|
||||
: '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -528,7 +532,11 @@ const CustomerPaymentTab = () => {
|
||||
enableSorting: false,
|
||||
cell: (props) => {
|
||||
const value = props.row.original.pickup_info;
|
||||
return Array.isArray(value) ? value.join(', ') : value || '-';
|
||||
return Array.isArray(value)
|
||||
? value.length > 0
|
||||
? value.join(', ')
|
||||
: '-'
|
||||
: '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user