Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(toolbox) fix warning due to missing key prop

Saúl Ibarra Corretgé18e2232e9e9f
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index af14e5f4e7..e2adbe2ab0 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -1,6 +1,6 @@
// @flow
-import React, { Component } from 'react';
+import React, { Component, Fragment } from 'react';
import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';
import {
@@ -1266,13 +1266,13 @@ class Toolbox extends Component<Props, State> {
const showSeparator = index > 0 && arr[index - 1].group !== group;
return (key !== 'raisehand' || !_reactionsEnabled)
- && <>
+ && <Fragment key = { `f${key}` }>
{showSeparator && <Separator key = { `hr${group}` } />}
<Content
{ ...rest }
key = { key }
showLabel = { true } />
- </>
+ </Fragment>
;
})}
</ul>