diff options
author | Evgeniy <gig177@yandex.ru> | 2017-02-01 04:41:25 +0300 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-01-31 20:41:25 -0500 |
commit | 318670253ab9ae6a902941d892229a3c88e10717 (patch) | |
tree | ae427d3d2f009f3c80bbc0803df014e382884698 | |
parent | 5539c92a23d955bda174c4a5fae6bf25e6cd172d (diff) | |
download | chat-318670253ab9ae6a902941d892229a3c88e10717.tar.gz chat-318670253ab9ae6a902941d892229a3c88e10717.tar.bz2 chat-318670253ab9ae6a902941d892229a3c88e10717.zip |
fix cloning channels (#5242)
* fix cloning channels
* fix code-style
-rw-r--r-- | webapp/components/sidebar.jsx | 4 |
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, |