Skip to content

Commit

Permalink
fix(regression): loading next discussion list pages fails (#3547)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <[email protected]>
  • Loading branch information
SychO9 authored Jul 19, 2022
1 parent 6b577e6 commit 31a00ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/js/src/forum/components/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class IndexPage<CustomAttrs extends IIndexPageAttrs = IIndexPageA
app.discussions.clear();
}

app.discussions.refreshParams(app.search.params(), Number(m.route.param('page')));
app.discussions.refreshParams(app.search.params(), (m.route.param('page') && Number(m.route.param('page'))) || 1);

app.history.push('index', extractText(app.translator.trans('core.forum.header.back_to_index_tooltip')));

Expand Down

0 comments on commit 31a00ee

Please sign in to comment.