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

Этот коммит содержится в:
Harrison Healey
2016-07-06 12:25:26 -04:00
коммит произвёл Corey Hulen
родитель f44dc649a9
Коммит 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