FIX: Broken similar topics

This commit is contained in:
Robin Ward 2016-04-26 17:54:52 -04:00
parent 7a01d575c2
commit 9fdea6cd46
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 3 additions and 1 deletions

View File

@ -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' });
}
}
}