fix(toolbox) fix warning due to missing key prop
This commit is contained in:
parent
5c299bcd46
commit
18e2232e9e
|
@ -1,6 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component, Fragment } from 'react';
|
||||||
|
|
||||||
import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';
|
import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';
|
||||||
import {
|
import {
|
||||||
|
@ -1266,13 +1266,13 @@ class Toolbox extends Component<Props, State> {
|
||||||
const showSeparator = index > 0 && arr[index - 1].group !== group;
|
const showSeparator = index > 0 && arr[index - 1].group !== group;
|
||||||
|
|
||||||
return (key !== 'raisehand' || !_reactionsEnabled)
|
return (key !== 'raisehand' || !_reactionsEnabled)
|
||||||
&& <>
|
&& <Fragment key = { `f${key}` }>
|
||||||
{showSeparator && <Separator key = { `hr${group}` } />}
|
{showSeparator && <Separator key = { `hr${group}` } />}
|
||||||
<Content
|
<Content
|
||||||
{ ...rest }
|
{ ...rest }
|
||||||
key = { key }
|
key = { key }
|
||||||
showLabel = { true } />
|
showLabel = { true } />
|
||||||
</>
|
</Fragment>
|
||||||
;
|
;
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue