mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
Merge pull request #4563 from vinkas0/vinkas/flatten
Added flatten func for applyDecorators
This commit is contained in:
commit
6768c7fc0b
@ -144,7 +144,7 @@ export default createWidget('hamburger-menu', {
|
||||
label: this.site.mobileView ? "desktop_view" : "mobile_view" });
|
||||
}
|
||||
|
||||
const extraLinks = applyDecorators(this, 'footerLinks', this.attrs, this.state);
|
||||
const extraLinks = flatten(applyDecorators(this, 'footerLinks', this.attrs, this.state));
|
||||
return links.concat(extraLinks).map(l => this.attach('link', l));
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user