revert last commit fa531e9

This commit is contained in:
btzr-io 2017-08-26 10:46:20 -06:00 committed by Jeremy Kauffman
parent 42cc8fdb52
commit 9f154ac6b7
2 changed files with 5 additions and 7 deletions

View file

@ -82,7 +82,6 @@ class FileActions extends React.PureComponent {
} = this.props;
const name = fileInfo ? fileInfo.name : null;
const path = fileInfo ? fileInfo.download_path : null;
const channel = fileInfo ? fileInfo.channel_name : null;
const metadata = fileInfo ? fileInfo.metadata : null,
@ -193,7 +192,7 @@ class FileActions extends React.PureComponent {
{claimIsMine &&
<DropDownMenuItem
key={1}
onClick={() => navigate("/publish", { name, channel, path })}
onClick={() => navigate("/publish", { name, channel })}
label={__("Edit claim")}
/>}
<DropDownMenuItem

View file

@ -48,7 +48,6 @@ class PublishForm extends React.PureComponent {
isFee: false,
customUrl: false,
source: null,
path: "",
};
}
@ -419,13 +418,14 @@ class PublishForm extends React.PureComponent {
}
componentWillMount() {
const { name, channel, path } = this.props.params;
const { name, channel } = this.props.params;
const rawName = name;
this.props.fetchClaimListMine();
this._updateChannelList();
if (name && channel && path) {
this.setState({ name, rawName: name, channel, path });
if (name && channel) {
this.setState({ name, rawName, channel });
}
}
@ -536,7 +536,6 @@ class PublishForm extends React.PureComponent {
label="File"
ref="file"
type="file"
defaultValue={this.state.path}
onChange={event => {
this.onFileChange(event);
}}