diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-28 12:45:31 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | 8dbefa3966bedadfcf842fa955868573c657bc11 (patch) | |
tree | 83477c4f8625e8208c4bd85da4affbef9f4d864d | |
parent | 1a1242905104f23daa783b7470db5697bde97967 (diff) |
Assign a `key` prop to get rid of warning.
-rw-r--r-- | app/javascript/flavours/glitch/features/list_timeline/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/list_timeline/index.js b/app/javascript/flavours/glitch/features/list_timeline/index.js index c634417ce..8864b1e0f 100644 --- a/app/javascript/flavours/glitch/features/list_timeline/index.js +++ b/app/javascript/flavours/glitch/features/list_timeline/index.js @@ -193,7 +193,7 @@ export default class ListTimeline extends React.PureComponent { <fieldset> <legend><FormattedMessage id='lists.replies_policy.title' defaultMessage='Show replies to:' /></legend> { ['no_replies', 'list_replies', 'all_replies'].map(policy => ( - <div className='setting-radio'> + <div key={['setting', 'radio', id, policy].join('-')} className='setting-radio'> <input className='setting-radio__input' id={['setting', 'radio', id, policy].join('-')} type='radio' value={policy} checked={replies_policy === policy} onChange={this.handleRepliesPolicyChange} /> <label className='setting-radio__label' htmlFor={['setting', 'radio', id, policy].join('-')}> <FormattedMessage {...messages[policy]} /> |