fix cloning channels (#5242)

* fix cloning channels

* fix code-style
This commit is contained in:
Evgeniy
2017-02-01 04:41:25 +03:00
committed by Joram Wilander
parent 5539c92a23
commit 318670253a

View File

@@ -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,