Move channel click dispatch outside of promise (#4545)
Этот коммит содержится в:
коммит произвёл
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()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user