From c7767e45b5b54d5da4e71c1901158d7beef008b3 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 27 Jul 2017 00:55:33 +0200 Subject: [PATCH] Remove faulty default value Fixes #1210. --- framework/core/js/admin/dist/app.js | 2 +- framework/core/js/admin/src/components/BasicsPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/admin/dist/app.js b/framework/core/js/admin/dist/app.js index c7c350183..eb2e3fcc1 100644 --- a/framework/core/js/admin/dist/app.js +++ b/framework/core/js/admin/dist/app.js @@ -18060,7 +18060,7 @@ System.register('flarum/components/BasicsPage', ['flarum/components/Page', 'flar var settings = app.data.settings; this.fields.forEach(function (key) { - return _this2.values[key] = m.prop(settings[key] || false); + return _this2.values[key] = m.prop(settings[key]); }); this.localeOptions = {}; diff --git a/framework/core/js/admin/src/components/BasicsPage.js b/framework/core/js/admin/src/components/BasicsPage.js index d5ccd3bd1..ac39abe1a 100644 --- a/framework/core/js/admin/src/components/BasicsPage.js +++ b/framework/core/js/admin/src/components/BasicsPage.js @@ -25,7 +25,7 @@ export default class BasicsPage extends Page { this.values = {}; const settings = app.data.settings; - this.fields.forEach(key => this.values[key] = m.prop(settings[key] || false)); + this.fields.forEach(key => this.values[key] = m.prop(settings[key])); this.localeOptions = {}; const locales = app.data.locales;