From e3d8d2fa5fe303adb5df10d62165b0f4a2cfad38 Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 3 Jan 2024 22:21:03 +0100 Subject: [PATCH] minor --- server/api/controller/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/api/controller/settings.js b/server/api/controller/settings.js index 491bbc6b..86ee4a9a 100644 --- a/server/api/controller/settings.js +++ b/server/api/controller/settings.js @@ -135,7 +135,9 @@ const settingsController = { const pluginController = require('./plugins') pluginController.unloadPlugin(pluginName) // Do not reload the plugin if the change in its settings was to disable it - value.enable && pluginController.loadPlugin(pluginName) + if (value.enable) { + pluginController.loadPlugin(pluginName) + } } catch (e) { log.error(e) }