From 9719983f2dcd8c47b7c6f59b46460a7a4878d8d4 Mon Sep 17 00:00:00 2001 From: cwm Date: Tue, 12 Dec 2017 22:50:20 -0600 Subject: move list items into an array, don't unnecessarily concat misc nav item --- .../flavours/glitch/features/getting_started/index.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'app/javascript/flavours/glitch/features/getting_started') diff --git a/app/javascript/flavours/glitch/features/getting_started/index.js b/app/javascript/flavours/glitch/features/getting_started/index.js index 11fdd2344..af1021dca 100644 --- a/app/javascript/flavours/glitch/features/getting_started/index.js +++ b/app/javascript/flavours/glitch/features/getting_started/index.js @@ -76,6 +76,7 @@ export default class GettingStarted extends ImmutablePureComponent { const { intl, myAccount, columns, multiColumn, lists } = this.props; let navItems = []; + let listItems = []; if (multiColumn) { if (!columns.find(item => item.get('id') === 'HOME')) { @@ -103,8 +104,15 @@ export default class GettingStarted extends ImmutablePureComponent { navItems.push(); } - navItems = navItems.concat([ - , + navItems.push(); + + listItems = listItems.concat([ +
+ + {lists.map(list => + + )} +
]); return ( @@ -114,10 +122,7 @@ export default class GettingStarted extends ImmutablePureComponent { {navItems} - - {lists.map(list => - - )} + {listItems} -- cgit