Move channel click dispatch outside of promise (#4545)

Этот коммит содержится в:
Joram Wilander
2016-11-14 13:48:22 -05:00
коммит произвёл Harrison Healey
родитель 11de77f63f
Коммит db0314053e

Просмотреть файл

@@ -50,13 +50,13 @@ export function emitChannelClickEvent(channel) {
AsyncClient.updateLastViewedAt(chan.id);
loadPosts(chan.id);
trackPage();
});
AppDispatcher.handleViewAction({
type: ActionTypes.CLICK_CHANNEL,
name: chan.name,
id: chan.id,
prev: ChannelStore.getCurrentId()
});
AppDispatcher.handleViewAction({
type: ActionTypes.CLICK_CHANNEL,
name: chan.name,
id: chan.id,
prev: ChannelStore.getCurrentId()
});
}