diff options
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/post_view_cache.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/post_view/post_view_cache.jsx b/webapp/components/post_view/post_view_cache.jsx index 8876ae461..13ce79d7f 100644 --- a/webapp/components/post_view/post_view_cache.jsx +++ b/webapp/components/post_view/post_view_cache.jsx @@ -4,6 +4,7 @@ import PostViewController from './post_view_controller.jsx'; import ChannelStore from 'stores/channel_store.jsx'; +import * as AsyncClient from 'utils/async_client.jsx'; import React from 'react'; @@ -28,6 +29,7 @@ export default class PostViewCache extends React.Component { } componentWillUnmount() { + AsyncClient.setActiveChannel(''); ChannelStore.removeChangeListener(this.onChannelChange); } |