Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip undefined values in merge #1067

Closed
wants to merge 1 commit into from

Conversation

adamcikado
Copy link
Contributor

@adamcikado adamcikado commented Nov 22, 2024

πŸ”— Linked issue

#1066

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)

πŸ“š Description

Resolves #1066 .

PS: It seems like a lot of changes in the PR but I just moved the condition to top:

if (!isObject(values)) {
  return this
}

so it's more readable.

And added:

if (value === undefined) {
  return
}

πŸ“ Checklist

  • I have linked an issue or discussion.

@adamcikado adamcikado closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model.merge incorrectly merges undefined data
1 participant