mirror of
https://github.com/flarum/core.git
synced 2025-07-17 23:01:17 +02:00
Remove unneeded delete
(#2835)
This commit is contained in:
@@ -100,8 +100,6 @@ export default class AdminPage extends Page {
|
|||||||
|
|
||||||
const { setting, help, ...componentAttrs } = entry;
|
const { setting, help, ...componentAttrs } = entry;
|
||||||
|
|
||||||
delete componentAttrs.help;
|
|
||||||
|
|
||||||
const value = this.setting([setting])();
|
const value = this.setting([setting])();
|
||||||
if (['bool', 'checkbox', 'switch', 'boolean'].includes(componentAttrs.type)) {
|
if (['bool', 'checkbox', 'switch', 'boolean'].includes(componentAttrs.type)) {
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user