mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Fixing bug where videos were not fetched on a channel page.
This commit is contained in:
parent
51b7c1cc75
commit
ea7fb09689
1 changed files with 3 additions and 0 deletions
|
|
@ -252,6 +252,8 @@ class Videos extends React.Component {
|
|||
await this.fetchChannel();
|
||||
} else if (pageChanged) {
|
||||
this.applyStateToHistory();
|
||||
// TODO this causes a double search request. This will be fixed with a custom hook.
|
||||
await this.fetchVideos();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -304,6 +306,7 @@ class Videos extends React.Component {
|
|||
}
|
||||
|
||||
async fetchVideos() {
|
||||
this.setState({videos: null});
|
||||
let offset = this.state.limit * this.state.activePage - this.state.limit;
|
||||
let channel_link = this.state.channel ? this.state.channel.link : null;
|
||||
let {queryStr, searchOrder, limit} = this.state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue