Skip to content

Commit

Permalink
Update packages/utils/src/mergeDefaultsWithFormData.ts
Browse files Browse the repository at this point in the history
- Fix linting
  • Loading branch information
heath-freenome authored Jan 24, 2025
1 parent c9350b6 commit 7511f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/mergeDefaultsWithFormData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function mergeDefaultsWithFormData<T = any>(
const overrideOppositeArray = overrideFormDataWithDefaults ? formData : defaultsArray;

const mapped = overrideArray.map((value, idx) => {
// We want to explicitly make sure that the value is NOT undefined since null, 0 and empty space are valid values
// We want to explicitly make sure that the value is NOT undefined since null, 0 and empty space are valid values
if (overrideOppositeArray[idx] !== undefined) {
return mergeDefaultsWithFormData<any>(
defaultsArray[idx],
Expand Down

0 comments on commit 7511f10

Please sign in to comment.