Changed EditChannelHeaderModal to only change it's displayed text when the user isn't editing it (#3503)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
f44dc649a9
Коммит
2b60c96994
@@ -54,7 +54,7 @@ class EditChannelHeaderModal extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
if (this.props !== nextProps) {
|
if (this.props.channel.header !== nextProps.channel.header && !this.props.show) {
|
||||||
this.setState({
|
this.setState({
|
||||||
header: nextProps.channel.header,
|
header: nextProps.channel.header,
|
||||||
submitted: false
|
submitted: false
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user