mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: JS error when showing topic search results (#14551)
This commit is contained in:
parent
9f3b82eeb2
commit
aa00960638
@ -61,7 +61,9 @@ export function addSearchSuggestion(value) {
|
|||||||
class Highlighted extends RawHtml {
|
class Highlighted extends RawHtml {
|
||||||
constructor(html, term) {
|
constructor(html, term) {
|
||||||
super({ html: `<span>${html}</span>` });
|
super({ html: `<span>${html}</span>` });
|
||||||
this.term = term.replace(TOPIC_REPLACE_REGEXP, "");
|
if (term) {
|
||||||
|
this.term = term.replace(TOPIC_REPLACE_REGEXP, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
decorate($html) {
|
decorate($html) {
|
||||||
|
Loading…
Reference in New Issue
Block a user