Этот коммит содержится в:
JoramWilander
2016-02-25 14:14:52 -05:00
родитель 493722b8f2
Коммит 04f6b0b86c
2 изменённых файлов: 12 добавлений и 47 удалений

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

@@ -91,9 +91,11 @@ export default class RhsThread extends React.Component {
});
}
onPostChange() {
const selected = PostStore.getSelectedPost();
const posts = PostStore.getSelectedPostThread();
this.setState({posts, selected});
if (this.mounted) {
const selected = PostStore.getSelectedPost();
const posts = PostStore.getSelectedPostThread();
this.setState({posts, selected});
}
}
onUserChange() {
const profiles = JSON.parse(JSON.stringify(UserStore.getProfiles()));