Bladeren bron

[RN] Fix incorrect JitsiMeetJS.init error handling

j8
Lyubomir Marinov 8 jaren geleden
bovenliggende
commit
b8f28abfdf
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1
    1
      react/features/base/lib-jitsi-meet/actions.js
  2. 1
    1
      react/features/base/lib-jitsi-meet/reducer.js

+ 1
- 1
react/features/base/lib-jitsi-meet/actions.js Bestand weergeven

@@ -49,7 +49,7 @@ export function initLib() {
49 49
             .catch(error => {
50 50
                 dispatch({
51 51
                     type: LIB_INIT_ERROR,
52
-                    lib: { error }
52
+                    error
53 53
                 });
54 54
 
55 55
                 // TODO Handle LIB_INIT_ERROR error somewhere instead.

+ 1
- 1
react/features/base/lib-jitsi-meet/reducer.js Bestand weergeven

@@ -55,7 +55,7 @@ ReducerRegistry.register(
55 55
         case LIB_INIT_ERROR:
56 56
             return {
57 57
                 ...state,
58
-                initializationError: action.lib.error,
58
+                initializationError: action.error,
59 59
                 initialized: false
60 60
             };
61 61
 

Laden…
Annuleren
Opslaan