From c0b856d1f8ac1bda9cabafbe1ea1f4275f2faf73 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 18 Jan 2018 15:58:47 -0800 Subject: [PATCH] updated componentwillreceiveprops to check for change in props --- react/containers/ChannelSelect/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/containers/ChannelSelect/view.jsx b/react/containers/ChannelSelect/view.jsx index 745949de..dbab4316 100644 --- a/react/containers/ChannelSelect/view.jsx +++ b/react/containers/ChannelSelect/view.jsx @@ -21,7 +21,7 @@ class ChannelSelect extends React.Component { } } componentWillReceiveProps ({ loggedInChannelName }) { - if (loggedInChannelName) { + if (loggedInChannelName && (loggedInChannelName !== this.props.loggedInChannelName)) { this.selectOption(loggedInChannelName); } }