feat: improve asset inventory statistics and responsive UX (v1.1.16)
This commit is contained in:
@@ -17,6 +17,10 @@ export function maskCustomerNames<T>(items: T[]): T[] {
|
||||
const copy = { ...obj };
|
||||
if ('customer' in copy && copy.customer) copy.customer = maskCustomerName(copy.customer);
|
||||
if ('customerName' in copy && copy.customerName) copy.customerName = maskCustomerName(copy.customerName);
|
||||
if (copy.pendingDelivery) copy.pendingDelivery = {
|
||||
...copy.pendingDelivery,
|
||||
customerName: maskCustomerName(copy.pendingDelivery.customerName),
|
||||
};
|
||||
return copy as T;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user