浏览代码

[RN] Fix incorrect JitsiMeetJS.init error handling

master
Lyubomir Marinov 8 年前
父节点
当前提交
b8f28abfdf
共有 2 个文件被更改,包括 2 次插入2 次删除
  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 查看文件

@@ -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 查看文件

@@ -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
 

正在加载...
取消
保存