diff --git a/src/settings/SettingsStore.js b/src/settings/SettingsStore.js index b1d61197a0..a65137631d 100644 --- a/src/settings/SettingsStore.js +++ b/src/settings/SettingsStore.js @@ -564,7 +564,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'