fix for anonymous edit

This commit is contained in:
btzr-io 2017-09-04 00:31:47 -06:00 committed by Jeremy Kauffman
parent 7a5f3c606d
commit dd5aada7ec

View file

@ -418,14 +418,15 @@ class PublishForm extends React.PureComponent {
} }
componentWillMount() { componentWillMount() {
const { name, channel } = this.props.params; let { name, channel } = this.props.params;
const rawName = name;
channel = channel || this.state.channel;
this.props.fetchClaimListMine(); this.props.fetchClaimListMine();
this._updateChannelList(); this._updateChannelList();
if (name && channel) { if (name) {
this.setState({ name, rawName, channel }); this.setState({ name, rawName: name, channel });
} }
} }