summaryrefslogtreecommitdiffstats
path: root/webapp/components/needs_team
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-01 10:49:34 -0400
committerGitHub <noreply@github.com>2017-05-01 10:49:34 -0400
commit2d22fb5652e547b4fe169dee2ea9cd14f747a485 (patch)
treea27e0a814ca2563ca9d20970201e397aa88afc6f /webapp/components/needs_team
parent83f819451a80a767170b927eb2f0d5ed63f03239 (diff)
downloadchat-2d22fb5652e547b4fe169dee2ea9cd14f747a485.tar.gz
chat-2d22fb5652e547b4fe169dee2ea9cd14f747a485.tar.bz2
chat-2d22fb5652e547b4fe169dee2ea9cd14f747a485.zip
Prevent unnecessary store emits (#6285)
* Remove unnecessary store emits * Drastically reduce number of emitted changes
Diffstat (limited to 'webapp/components/needs_team')
-rw-r--r--webapp/components/needs_team/needs_team.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/needs_team/needs_team.jsx b/webapp/components/needs_team/needs_team.jsx
index 2ae3cbeec..6c18ee4e4 100644
--- a/webapp/components/needs_team/needs_team.jsx
+++ b/webapp/components/needs_team/needs_team.jsx
@@ -119,7 +119,7 @@ export default class NeedsTeam extends React.Component {
window.isActive = true;
$(window).on('focus', () => {
this.props.actions.viewChannel(ChannelStore.getCurrentId());
- ChannelStore.resetCounts(ChannelStore.getCurrentId());
+ ChannelStore.resetCounts([ChannelStore.getCurrentId()]);
ChannelStore.emitChange();
window.isActive = true;