summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/sidebar.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index 9adc463be..08962682d 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -109,7 +109,9 @@ export default class Sidebar extends React.Component {
const teamMembers = TeamStore.getMyTeamMembers();
const currentChannelId = ChannelStore.getCurrentId();
const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999);
- const channelList = ChannelUtils.buildDisplayableChannelList(Object.assign([], ChannelStore.getAll()));
+
+ const allChannels = ChannelStore.getAll().map((channel) => Object.assign({}, channel));
+ const channelList = ChannelUtils.buildDisplayableChannelList(allChannels);
return {
activeId: currentChannelId,