diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/utils')
-rw-r--r-- | packages/merchant-backoffice-ui/src/utils/table.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/utils/table.ts b/packages/merchant-backoffice-ui/src/utils/table.ts index 5a94654f3..af989c3e9 100644 --- a/packages/merchant-backoffice-ui/src/utils/table.ts +++ b/packages/merchant-backoffice-ui/src/utils/table.ts @@ -51,7 +51,7 @@ export function buildActions<T extends WithId>( * @returns */ export function undefinedIfEmpty< - T extends Record<string, unknown> | Array<unknown>, + T extends object | Record<string, unknown> | Array<unknown>, >(obj: T | undefined): T | undefined { if (obj === undefined) return undefined; return Object.values(obj).some((v) => v !== undefined) ? obj : undefined; |