fix(config) fix check for filmstrip property

The whole object might be undefined.
This commit is contained in:
Saúl Ibarra Corretgé 2022-09-15 17:12:43 +02:00 committed by Saúl Ibarra Corretgé
parent 2d6e181a13
commit 1cd80a33c6
1 changed files with 1 additions and 1 deletions

View File

@ -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({ dispatch(updateSettings({
maxStageParticipants: action.config.filmstrip.stageFilmstripParticipants maxStageParticipants: action.config.filmstrip.stageFilmstripParticipants
})); }));