Skip to content

Commit

Permalink
fix: don't remove empty objects from storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Pader committed Sep 13, 2023
1 parent d9b6e55 commit 6e054a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function removeNullObjectValues(value) {

const objectWithoutNullObjectValues = _.omit(value, objectValue => _.isNull(objectValue));

return _.isEmpty(objectWithoutNullObjectValues) ? undefined : objectWithoutNullObjectValues;
return objectWithoutNullObjectValues;
}

export default {removeNullObjectValues};

0 comments on commit 6e054a8

Please sign in to comment.