From ce3f8f578569b2a51ee470b7042a00f21d8a36e4 Mon Sep 17 00:00:00 2001 From: Ezinwa Okpoechi Date: Fri, 10 Mar 2017 18:29:07 +0100 Subject: [PATCH] Show default value if value is not present --- .../core/cerebro/settings/Settings/external-settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main/plugins/core/cerebro/settings/Settings/external-settings.js b/app/main/plugins/core/cerebro/settings/Settings/external-settings.js index 9e0b6f76..ccae4914 100644 --- a/app/main/plugins/core/cerebro/settings/Settings/external-settings.js +++ b/app/main/plugins/core/cerebro/settings/Settings/external-settings.js @@ -16,7 +16,8 @@ export default class ExternalSettings extends Component { } renderSetting(label, setting, plugin) { - const { type, value, description } = setting + const { type, description } = setting + const value = setting.value || setting.defaultValue if (type == 'bool') { return (