diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-09 16:35:49 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-10 10:01:01 -0500 |
commit | 88f29d8b6d643a7043a2fba3f341feca0a1b2425 (patch) | |
tree | d68d321b5a3eec0bb9a92985fb73dc728e47298f /web/react/stores | |
parent | 84aa572f67cc41d59690a73f080d0f6c81be4ae0 (diff) | |
download | chat-88f29d8b6d643a7043a2fba3f341feca0a1b2425.tar.gz chat-88f29d8b6d643a7043a2fba3f341feca0a1b2425.tar.bz2 chat-88f29d8b6d643a7043a2fba3f341feca0a1b2425.zip |
Fixed EditChannelHeaderModal's contents not always being updated when a change is made
Diffstat (limited to 'web/react/stores')
-rw-r--r-- | web/react/stores/channel_store.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/stores/channel_store.jsx b/web/react/stores/channel_store.jsx index 0bfde77b4..afc960fcf 100644 --- a/web/react/stores/channel_store.jsx +++ b/web/react/stores/channel_store.jsx @@ -317,7 +317,9 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => { case ActionTypes.RECIEVED_CHANNEL: ChannelStore.pStoreChannel(action.channel); - ChannelStore.pStoreChannelMember(action.member); + if (action.member) { + ChannelStore.pStoreChannelMember(action.member); + } currentId = ChannelStore.getCurrentId(); if (currentId) { ChannelStore.resetCounts(currentId); |