From 676d7f2b933d0c8495e7b7bac6bc20b14898f1c6 Mon Sep 17 00:00:00 2001 From: Robert Pintilii Date: Fri, 21 Jan 2022 12:25:23 +0200 Subject: [PATCH] fix(screenshot-capture) Add initial state (#10827) --- react/features/screenshot-capture/reducer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react/features/screenshot-capture/reducer.js b/react/features/screenshot-capture/reducer.js index 6a5f8760e..cb408f891 100644 --- a/react/features/screenshot-capture/reducer.js +++ b/react/features/screenshot-capture/reducer.js @@ -8,7 +8,11 @@ PersistenceRegistry.register('features/screnshot-capture', true, { capturesEnabled: false }); -ReducerRegistry.register('features/screenshot-capture', (state = {}, action) => { +const DEFAULT_STATE = { + capturesEnabled: false +}; + +ReducerRegistry.register('features/screenshot-capture', (state = DEFAULT_STATE, action) => { switch (action.type) { case SET_SCREENSHOT_CAPTURE: { return {