mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
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;
|
const { plugins } = SettingsStore.plain;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
plugins[pluginName][newSetting] != null ||
|
plugins?.[pluginName]?.[oldSetting] == null ||
|
||||||
plugins[pluginName][oldSetting] == null
|
plugins[pluginName][newSetting] != null
|
||||||
) return;
|
) return;
|
||||||
|
|
||||||
plugins[pluginName][newSetting] = plugins[pluginName][oldSetting];
|
plugins[pluginName][newSetting] = plugins[pluginName][oldSetting];
|
||||||
|
|
Loading…
Reference in a new issue