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

View file

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