From 2b60c96994a99676ddaaff7eabaef061c0075755 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 6 Jul 2016 12:25:26 -0400 Subject: Changed EditChannelHeaderModal to only change it's displayed text when the user isn't editing it (#3503) --- webapp/components/edit_channel_header_modal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/components/edit_channel_header_modal.jsx b/webapp/components/edit_channel_header_modal.jsx index 394c0e21c..cfc89500d 100644 --- a/webapp/components/edit_channel_header_modal.jsx +++ b/webapp/components/edit_channel_header_modal.jsx @@ -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 -- cgit v1.2.3-1-g7c22