1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 14:51:19 +02:00

Remove unneeded delete (#2835)

This commit is contained in:
David Wheatley
2021-05-05 15:46:23 +01:00
committed by GitHub
parent d16bd5a72e
commit 340f7d0dd1

View File

@@ -100,8 +100,6 @@ export default class AdminPage extends Page {
const { setting, help, ...componentAttrs } = entry;
delete componentAttrs.help;
const value = this.setting([setting])();
if (['bool', 'checkbox', 'switch', 'boolean'].includes(componentAttrs.type)) {
return (