Skip to content

Commit

Permalink
Merge pull request #33 from kadirahq/fix-comments-deleting
Browse files Browse the repository at this point in the history
Fix deleting comment issue.
  • Loading branch information
arunoda authored Oct 12, 2016
2 parents 52316a8 + 55c8804 commit 0ec262e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/manager/containers/CommentsPanel/dataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ export default class DataStore {
}

_setDeletedComment(commentId) {
const storyKey = this._getStoryKey(this.currentStory);
const comments = this.cache[storyKey];
const { comments } = this._getFromCache(this.currentStory);
const deleted = comments.find(c => c.id === commentId);
if (deleted) {
deleted.loading = true;
Expand Down

0 comments on commit 0ec262e

Please sign in to comment.