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

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