Skip to content

Commit

Permalink
client: Fix “Mark all as read” button not hiding marked articles
Browse files Browse the repository at this point in the history
Appears to have been broken by f3b279c.

Fixes: #1388
  • Loading branch information
jtojnar committed Nov 14, 2022
1 parent fe5c3d4 commit ec544b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

### Bug fixes
- Configuration parser was changed to *raw* method, which relaxes the requirement to quote option values containing special characters in `config.ini`. ([#1371](https://github.com/fossar/selfoss/issues/1371))
- Fix “Mark all as read” button not hiding marked articles in unread view. ([#1388](https://github.com/fossar/selfoss/issues/1388))

### Other changes
- `tidy` PHP extension is now required if you want to use “Content extractor” spout. ([#1392](https://github.com/fossar/selfoss/pull/1392))
Expand Down
4 changes: 2 additions & 2 deletions assets/js/templates/EntriesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ export default class StateHolder extends React.Component {
// close opened entry and list
this.setExpandedEntries({});

if (ids.length !== 0 && this.props.match.filter === FilterType.UNREAD) {
markedEntries = markedEntries.filter(({ id }) => ids.includes(id));
if (ids.length !== 0 && this.props.match.params.filter === FilterType.UNREAD) {
markedEntries = markedEntries.filter(({ id }) => !ids.includes(id));
}

this.setLoadingState(LoadingState.LOADING);
Expand Down

0 comments on commit ec544b7

Please # to comment.