Skip to content

Commit 0dabb6f

Browse files
committed
fix new comment issue
1 parent 1d97859 commit 0dabb6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/highlights/NbHighlight.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ export default {
153153
this.$emit(state ? 'hover-thread' : 'unhover-thread', this.thread)
154154
},
155155
onClick: function () {
156+
157+
if (!this.thread) {
158+
return this.$emit('select-thread', this.thread, 'NONE')
159+
}
160+
156161
let type = 'HIGHLIGHT'
157162
158163
if ((this.isEmphasize && this.thread.spotlight && this.thread.spotlight.type === 'EM') || (this.isInnotation && this.thread.spotlight && this.thread.spotlight.type === 'IN')) {

0 commit comments

Comments
 (0)