From 7c923b9962600e0a0126739b19043490f7c2463e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 27 Jun 2024 16:14:32 +0200 Subject: [PATCH] fix enabled by default logic --- src/api/Settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/Settings.ts b/src/api/Settings.ts index 70ba0bd4a..88337a917 100644 --- a/src/api/Settings.ts +++ b/src/api/Settings.ts @@ -129,7 +129,7 @@ export const SettingsStore = new SettingsStoreClass(settings, { if (path === "plugins" && key in plugins) return target[key] = { - enabled: IS_REPORTER ?? plugins[key].required ?? plugins[key].enabledByDefault ?? false + enabled: IS_REPORTER || plugins[key].required || plugins[key].enabledByDefault || false }; // Since the property is not set, check if this is a plugin's setting and if so, try to resolve