👷 refactor(removeNullishValues): allow empty strings configured in parameters (#4291)
This commit is contained in:
@@ -830,7 +830,7 @@ export function removeNullishValues<T extends Record<string, unknown>>(obj: T):
|
||||
|
||||
(Object.keys(newObj) as Array<keyof T>).forEach((key) => {
|
||||
const value = newObj[key];
|
||||
if (value === undefined || value === null || value === '') {
|
||||
if (value === undefined || value === null) {
|
||||
delete newObj[key];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user