diff --git a/framework/core/js/src/admin/components/AdminPage.js b/framework/core/js/src/admin/components/AdminPage.js index c5f3496a1..8ecfbdd12 100644 --- a/framework/core/js/src/admin/components/AdminPage.js +++ b/framework/core/js/src/admin/components/AdminPage.js @@ -98,39 +98,37 @@ export default class AdminPage extends Page { return entry.call(this); } - const { setting, help, ...componentAttrs } = entry; + const { setting, help, type, label, ...componentAttrs } = entry; - const value = this.setting([setting])(); - if (['bool', 'checkbox', 'switch', 'boolean'].includes(componentAttrs.type)) { + const value = this.setting(setting)(); + + if (['bool', 'checkbox', 'switch', 'boolean'].includes(type)) { return (