浏览代码

fix: undefined is not an object on bitrate

j8
Bettenbuk Zoltan 6 年前
父节点
当前提交
955fa1f49f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      react/features/base/testing/components/TestConnectionInfo.js

+ 2
- 2
react/features/base/testing/components/TestConnectionInfo.js 查看文件

117
         this.setState({
117
         this.setState({
118
             stats: {
118
             stats: {
119
                 bitrate: {
119
                 bitrate: {
120
-                    download: stats.bitrate.download,
121
-                    upload: stats.bitrate.upload
120
+                    download: stats.bitrate?.download || 0,
121
+                    upload: stats.bitrate?.upload || 0
122
                 }
122
                 }
123
             }
123
             }
124
         });
124
         });

正在加载...
取消
保存