From dd5aada7ec26f419f5ee0cf5e0baccd9430a7d83 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Mon, 4 Sep 2017 00:31:47 -0600 Subject: [PATCH] fix for anonymous edit --- ui/js/component/publishForm/view.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/js/component/publishForm/view.jsx b/ui/js/component/publishForm/view.jsx index 28868e8a1..2e68ac924 100644 --- a/ui/js/component/publishForm/view.jsx +++ b/ui/js/component/publishForm/view.jsx @@ -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 }); } }