Skip to content

Conversation

@aadamcik
Copy link
Contributor

@aadamcik aadamcik 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.

@aadamcik aadamcik 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