Skip to content

Commit

Permalink
fix: *merge* setting to true irrespective of value passed
Browse files Browse the repository at this point in the history
*merge* option is being set to true, even if false is passed! This can result in unexpected results!
  • Loading branch information
snehsagarajput authored Jul 31, 2022
1 parent b062e74 commit 6015835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firestore/lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function parseSetOptions(options) {
throw new Error("'options.merge' must be a boolean value.");
}

out.merge = true;
out.merge = options.merge;
}

if (!isUndefined(options.mergeFields)) {
Expand Down

0 comments on commit 6015835

Please sign in to comment.