Copying profiles on posts_view so we can detect new users (#2847)

Этот коммит содержится в:
Christopher Speller
2016-05-02 14:07:22 -04:00
коммит произвёл Corey Hulen
родитель f8ed606a5f
Коммит ddc888d264

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

@@ -77,7 +77,7 @@ export default class PostsView extends React.Component {
});
}
onUserChange() {
this.setState({currentUser: UserStore.getCurrentUser(), profiles: UserStore.getProfiles()});
this.setState({currentUser: UserStore.getCurrentUser(), profiles: JSON.parse(JSON.stringify(UserStore.getProfiles()))});
}
isAtBottom() {
// consider the view to be at the bottom if it's within this many pixels of the bottom