Changed EditChannelHeaderModal to only change it's displayed text when the user isn't editing it (#3503)

This commit is contained in:
Harrison Healey
2016-07-06 08:25:26 -08:00
committed by Corey Hulen
parent f44dc649a9
commit 2b60c96994
@@ -54,7 +54,7 @@ class EditChannelHeaderModal extends React.Component {
}
componentWillReceiveProps(nextProps) {
if (this.props !== nextProps) {
if (this.props.channel.header !== nextProps.channel.header && !this.props.show) {
this.setState({
header: nextProps.channel.header,
submitted: false