mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
👷 refactor(removeNullishValues): allow empty strings configured in parameters (#4291)
This commit is contained in:
parent
ad74350036
commit
2ce8647540
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue