소스 검색

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
         });

Loading…
취소
저장