diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-01 12:09:30 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-01 12:09:30 +0300 |
commit | 9accca43c3b2cdd8d2c3e4def335555afcfca35d (patch) | |
tree | 6640358f855744d8176e50b986c1233037d56c86 /app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 | |
parent | c51cbc1f2f3b590c4f38198dd886c4e372b4e476 (diff) |
Unminified versions of vue & vue-resource
Diffstat (limited to 'app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6')
-rw-r--r-- | app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 b/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 index 75c4376acd4..4c29786cc9e 100644 --- a/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 +++ b/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 @@ -10,8 +10,11 @@ }, computed: { allResolved: function () { - const discussion = this.discussions[discussionId]; - return discussion.isResolved(); + const discussion = this.discussions[this.discussionId]; + + if (discussion) { + return discussion.isResolved(); + } }, discussionsCount: function () { return CommentsStore.discussionCount(); |