Fix error when remove from bookmark category
This commit is contained in:
parent
ddce464d70
commit
ed3bb8a751
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ const appendToBookmarkCategoryStatusesById = (state, bookmarkCategoryId, statuse
|
||||||
};
|
};
|
||||||
|
|
||||||
const removeStatusFromBookmarkCategoryById = (state, bookmarkCategoryId, status) => {
|
const removeStatusFromBookmarkCategoryById = (state, bookmarkCategoryId, status) => {
|
||||||
|
if (state.getIn([bookmarkCategoryId, 'items'])) {
|
||||||
return state.updateIn([bookmarkCategoryId, 'items'], items => items.delete(status));
|
return state.updateIn([bookmarkCategoryId, 'items'], items => items.delete(status));
|
||||||
|
}
|
||||||
|
return state;
|
||||||
};
|
};
|
||||||
|
|
||||||
const removeStatusFromAllBookmarkCategories = (state, status) => {
|
const removeStatusFromAllBookmarkCategories = (state, status) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue