浏览代码

toolbox: fix missing key prop

Fixes a React warning.
master
Saúl Ibarra Corretgé 5 年前
父节点
当前提交
a7e0df2623
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      react/features/toolbox/components/web/Toolbox.js

+ 5
- 1
react/features/toolbox/components/web/Toolbox.js 查看文件

@@ -1083,7 +1083,11 @@ class Toolbox extends Component<Props, State> {
1083 1083
                         } />
1084 1084
                 );
1085 1085
             case 'closedcaptions':
1086
-                return <ClosedCaptionButton showLabel = { true } />;
1086
+                return (
1087
+                    <ClosedCaptionButton
1088
+                        key = 'closed-captions'
1089
+                        showLabel = { true } />
1090
+                );
1087 1091
             case 'security':
1088 1092
                 return (
1089 1093
                     <SecurityDialogButton

正在加载...
取消
保存