Fix error when remove from bookmark category

This commit is contained in:
KMY 2023-09-15 18:52:26 +09:00
parent ddce464d70
commit ed3bb8a751

View file

@ -65,7 +65,10 @@ const appendToBookmarkCategoryStatusesById = (state, bookmarkCategoryId, statuse
};
const removeStatusFromBookmarkCategoryById = (state, bookmarkCategoryId, status) => {
if (state.getIn([bookmarkCategoryId, 'items'])) {
return state.updateIn([bookmarkCategoryId, 'items'], items => items.delete(status));
}
return state;
};
const removeStatusFromAllBookmarkCategories = (state, status) => {