Only enumerate settings handlers which are supported currently
This commit is contained in:
parent
463bddb7e9
commit
e23a3e98be
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue