Merge pull request #295 from chriswmartin/getting-started-key-fix

unique ColumnLink keys in getting_started
master
beatrix 7 years ago committed by GitHub
commit b4e667f86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/javascript/flavours/glitch/features/getting_started/index.js

@ -111,10 +111,10 @@ export default class GettingStarted extends ImmutablePureComponent {
navItems.push(<ColumnLink key='6' icon='ellipsis-h' text={intl.formatMessage(messages.misc)} to='/getting-started-misc' />); navItems.push(<ColumnLink key='6' icon='ellipsis-h' text={intl.formatMessage(messages.misc)} to='/getting-started-misc' />);
listItems = listItems.concat([ listItems = listItems.concat([
<div> <div key='7'>
<ColumnLink key='7' icon='bars' text={intl.formatMessage(messages.lists)} to='/lists' /> <ColumnLink key='8' icon='bars' text={intl.formatMessage(messages.lists)} to='/lists' />
{lists.map(list => {lists.map(list =>
<ColumnLink key={list.get('id')} to={`/timelines/list/${list.get('id')}`} icon='list-ul' text={list.get('title')} /> <ColumnLink key={(8 + Number(list.get('id'))).toString()} to={`/timelines/list/${list.get('id')}`} icon='list-ul' text={list.get('title')} />
)} )}
</div>, </div>,
]); ]);

Loading…
Cancel
Save