mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Changed EditChannelHeaderModal to only change it's displayed text when the user isn't editing it (#3503)
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user