Fix Filter decorator with nested key paths of null #64
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MichaelContento/redux-storage!64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "b-filter-decorated-null-nested-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There is a bug in the filter decorator when using nested key paths. If the nested key path value is
null. The key path one level higher is written. As an example:This prints out:
As you can see, when the value of
a.firstisnull, the saved data structure is corrupted.This PR ensures that a null or undefined value will properly set the state tree.
Fixed with working tests in
b7bf6e5Pull request closed