mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 01:04:09 +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…
x
Reference in New Issue
Block a user