Settings API: Fix erroring if plugin settings don't exist
This commit is contained in:
parent
f43baddc55
commit
cdc756193e
1 changed files with 2 additions and 2 deletions
|
@ -224,8 +224,8 @@ export function migratePluginSetting(pluginName: string, oldSetting: string, new
|
|||
const { plugins } = SettingsStore.plain;
|
||||
|
||||
if (
|
||||
plugins[pluginName][newSetting] != null ||
|
||||
plugins[pluginName][oldSetting] == null
|
||||
plugins?.[pluginName]?.[oldSetting] == null ||
|
||||
plugins[pluginName][newSetting] != null
|
||||
) return;
|
||||
|
||||
plugins[pluginName][newSetting] = plugins[pluginName][oldSetting];
|
||||
|
|
Loading…
Reference in a new issue