Selaa lähdekoodia

fix: undefined is not an object on bitrate

efficient_tiling
Bettenbuk Zoltan 5 vuotta sitten
vanhempi
commit
955fa1f49f
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      react/features/base/testing/components/TestConnectionInfo.js

+ 2
- 2
react/features/base/testing/components/TestConnectionInfo.js Näytä tiedosto

@@ -117,8 +117,8 @@ class TestConnectionInfo extends Component<Props, State> {
117 117
         this.setState({
118 118
             stats: {
119 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…
Peruuta
Tallenna