Skip to content

Commit 2ce8647

Browse files
authored
👷 refactor(removeNullishValues): allow empty strings configured in parameters (danny-avila#4291)
1 parent ad74350 commit 2ce8647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/data-provider/src/schemas.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ export function removeNullishValues<T extends Record<string, unknown>>(obj: T):
830830

831831
(Object.keys(newObj) as Array<keyof T>).forEach((key) => {
832832
const value = newObj[key];
833-
if (value === undefined || value === null || value === '') {
833+
if (value === undefined || value === null) {
834834
delete newObj[key];
835835
}
836836
});

0 commit comments

Comments
 (0)