Fetch claim list on Publish page
Before, it would only receive the list of published claims if it had already been fetched from previously viewing the My Files page
This commit is contained in:
parent
69bf1bdfea
commit
342afc6873
2 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ import React from "react";
|
|||
import { connect } from "react-redux";
|
||||
import { doNavigate, doHistoryBack } from "actions/app";
|
||||
import { selectMyClaims } from "selectors/claims";
|
||||
import { doFetchClaimListMine } from "actions/content";
|
||||
import PublishPage from "./view";
|
||||
|
||||
const select = state => ({
|
||||
|
@ -11,6 +12,7 @@ const select = state => ({
|
|||
const perform = dispatch => ({
|
||||
back: () => dispatch(doHistoryBack()),
|
||||
navigate: path => dispatch(doNavigate(path)),
|
||||
fetchClaimListMine: () => dispatch(doFetchClaimListMine()),
|
||||
});
|
||||
|
||||
export default connect(select, perform)(PublishPage);
|
||||
|
|
|
@ -411,6 +411,7 @@ class PublishPage extends React.PureComponent {
|
|||
}
|
||||
|
||||
componentWillMount() {
|
||||
this.props.fetchClaimListMine();
|
||||
this._updateChannelList();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue