mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Broken similar topics
This commit is contained in:
parent
7a01d575c2
commit
9fdea6cd46
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ class Highlighted extends RawHtml {
|
|||
}
|
||||
|
||||
decorate($html) {
|
||||
$html.highlight(this.term.split(/\s+/), { className: 'search-highlight' });
|
||||
if (this.term) {
|
||||
$html.highlight(this.term.split(/\s+/), { className: 'search-highlight' });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue