mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 16:31:37 +02:00
Only enumerate settings handlers which are supported currently
This commit is contained in:
parent
463bddb7e9
commit
e23a3e98be
@ -564,7 +564,7 @@ export default class SettingsStore {
|
|||||||
const handlers = {};
|
const handlers = {};
|
||||||
for (const level of SETTINGS[settingName].supportedLevels) {
|
for (const level of SETTINGS[settingName].supportedLevels) {
|
||||||
if (!LEVEL_HANDLERS[level]) throw new Error("Unexpected level " + level);
|
if (!LEVEL_HANDLERS[level]) throw new Error("Unexpected level " + level);
|
||||||
handlers[level] = LEVEL_HANDLERS[level];
|
if (SettingsStore.isLevelSupported(level)) handlers[level] = LEVEL_HANDLERS[level];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always support 'default'
|
// Always support 'default'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user