Merge pull request #4034 from matrix-org/t3chguy/s1
Only enumerate settings handlers which are supportedpull/21833/head
commit
d8d8dd4508
|
@ -567,7 +567,7 @@ export default class SettingsStore {
|
|||
const handlers = {};
|
||||
for (const level of SETTINGS[settingName].supportedLevels) {
|
||||
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'
|
||||
|
|
Loading…
Reference in New Issue