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() {
const { name, channel } = this.props.params;
const rawName = name;
let { name, channel } = this.props.params;
channel = channel || this.state.channel;
this.props.fetchClaimListMine();
this._updateChannelList();
if (name && channel) {
this.setState({ name, rawName, channel });
if (name) {
this.setState({ name, rawName: name, channel });
}
}