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) }