瀏覽代碼

fix(participants-pane): Consider reducer/state being unavailable on native

j8
Gabriel Imre 4 年之前
父節點
當前提交
20a62e5eb4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/participants-pane/functions.js

+ 1
- 1
react/features/participants-pane/functions.js 查看文件

@@ -62,5 +62,5 @@ const getState = state => state[REDUCER_KEY];
62 62
  * @param {Object} state - Global state.
63 63
  * @returns {boolean} Is the participants pane open.
64 64
  */
65
-export const getParticipantsPaneOpen = state => Boolean(getState(state).isOpen);
65
+export const getParticipantsPaneOpen = state => Boolean(getState(state)?.isOpen);
66 66
 

Loading…
取消
儲存