mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 16:48:29 +08:00
Fix undefined attrs
.
This commit is contained in:
parent
ee58c4cd94
commit
fc52624aac
|
@ -226,7 +226,7 @@ export default createWidget('header', {
|
|||
},
|
||||
|
||||
linkClickedEvent(attrs) {
|
||||
if (!attrs.searchContextEnabled) this.closeAll();
|
||||
if (!(attrs && attrs.searchContextEnabled)) this.closeAll();
|
||||
this.updateHighlight();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user