Skip to content

Commit

Permalink
Fix: IndexOutOfBoundsException thrown in topics view when changing to…
Browse files Browse the repository at this point in the history
… cluster with fewer pages [tchiotludo#835]
  • Loading branch information
EdwinFajardoBarrera committed Dec 22, 2021
1 parent 3a90233 commit 9afdaf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/containers/Topic/TopicList/TopicList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ class TopicList extends Root {
this.cancelAxiosRequests();
this.renewCancelToken();

this._initializeVars(this.getTopics);
this.setState({ pageNumber: 1 }, () => {
this._initializeVars(this.getTopics);
});
}
}

Expand Down

0 comments on commit 9afdaf3

Please sign in to comment.