-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If a filter term is deleted, remove the category from the filter stat…
…e instead of keeping it stored as an undefined value Signed-off-by: Kristen Armes <karmes@lyft.com>
- Loading branch information
1 parent
7467d0c
commit b84387a
Showing
2 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Another way of doing this on an immutable way would be:
This would avoid the 'delete', that is a mutating operation (although made on a copy of the object)