From 1cd80a33c62112c850c11050c7671285d7124065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 15 Sep 2022 17:12:43 +0200 Subject: [PATCH] fix(config) fix check for filmstrip property The whole object might be undefined. --- react/features/base/config/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/config/middleware.ts b/react/features/base/config/middleware.ts index 87e75eb84..21c86abd2 100644 --- a/react/features/base/config/middleware.ts +++ b/react/features/base/config/middleware.ts @@ -74,7 +74,7 @@ function _setConfig({ dispatch, getState }: IStore, next: Function, action: AnyA })); } - if (action.config.filmstrip.stageFilmstripParticipants !== undefined) { + if (action.config.filmstrip?.stageFilmstripParticipants !== undefined) { dispatch(updateSettings({ maxStageParticipants: action.config.filmstrip.stageFilmstripParticipants }));