Merge pull request #4563 from vinkas0/vinkas/flatten

Added flatten func for applyDecorators
This commit is contained in:
Régis Hanol 2016-11-28 10:19:22 +01:00 committed by GitHub
commit 6768c7fc0b

View File

@ -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));
},