summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_view.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/channel_view.jsx')
-rw-r--r--webapp/components/channel_view.jsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/webapp/components/channel_view.jsx b/webapp/components/channel_view.jsx
index 35d2a5891..7e2f8069c 100644
--- a/webapp/components/channel_view.jsx
+++ b/webapp/components/channel_view.jsx
@@ -25,11 +25,9 @@ export default class ChannelView extends React.Component {
this.state = this.getStateFromStores(props);
}
- getStateFromStores(props) {
- const channel = ChannelStore.getByName(props.params.channel);
- const channelId = channel ? channel.id : '';
+ getStateFromStores() {
return {
- channelId
+ channelId: ChannelStore.getCurrentId()
};
}
isStateValid() {