fix(disableSelfView) Config overwrites settings (#10750)

This commit is contained in:
Robert Pintilii 2022-01-10 12:46:33 +02:00 committed by GitHub
parent 22ffcf922a
commit b8778c4e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -125,6 +125,12 @@ function _setConfig({ dispatch, getState }, next, action) {
}));
}
if (action.config.disableSelfView !== undefined) {
dispatch(updateSettings({
disableSelfView: action.config.disableSelfView
}));
}
dispatch(updateConfig(config));
// FIXME On Web we rely on the global 'config' variable which gets altered