Refactor listener out of user profile and fix thread logic

Этот коммит содержится в:
JoramWilander
2016-02-23 11:09:59 -05:00
родитель c16071afc5
Коммит 1f049af2b7
18 изменённых файлов: 218 добавлений и 270 удалений

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

@@ -68,7 +68,7 @@ export default class DeletePostModal extends React.Component {
AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_POST_SELECTED,
results: null
postId: null
});
} else if (selectedPost.id === this.state.post.id && this.state.root_id) {
if (selectedPost.root_id && selectedPost.root_id.length > 0 && selectedList.posts[selectedPost.root_id]) {
@@ -77,7 +77,7 @@ export default class DeletePostModal extends React.Component {
AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_POST_SELECTED,
post_list: selectedList
postId: selectedPost.root_id
});
AppDispatcher.handleServerAction({