From 342afc6873244fa58777085ad04a44ec6f5f1a3d Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 9 Jun 2017 06:38:18 -0400 Subject: [PATCH] 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 --- ui/js/page/publish/index.js | 2 ++ ui/js/page/publish/view.jsx | 1 + 2 files changed, 3 insertions(+) diff --git a/ui/js/page/publish/index.js b/ui/js/page/publish/index.js index 4b20b9032..5a662a98f 100644 --- a/ui/js/page/publish/index.js +++ b/ui/js/page/publish/index.js @@ -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); diff --git a/ui/js/page/publish/view.jsx b/ui/js/page/publish/view.jsx index 89db3c109..28c7e3a7e 100644 --- a/ui/js/page/publish/view.jsx +++ b/ui/js/page/publish/view.jsx @@ -411,6 +411,7 @@ class PublishPage extends React.PureComponent { } componentWillMount() { + this.props.fetchClaimListMine(); this._updateChannelList(); }