From 3e0cf2ded12c4df19a0387a427581748dcabb63b Mon Sep 17 00:00:00 2001 From: ajnart Date: Sat, 11 Feb 2023 23:18:48 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Hotfix=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Settings/Customization/CustomizationAccordeon.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Settings/Customization/CustomizationAccordeon.tsx b/src/components/Settings/Customization/CustomizationAccordeon.tsx index 86e7c1d38..70b8d29df 100644 --- a/src/components/Settings/Customization/CustomizationAccordeon.tsx +++ b/src/components/Settings/Customization/CustomizationAccordeon.tsx @@ -55,7 +55,7 @@ const getItems = () => { 'settings/customization/general', 'settings/customization/color-selector', ]); - return [ + const items = [ { id: 'layout', image: , @@ -113,7 +113,9 @@ const getItems = () => { ), }, - process.env.NODE_ENV === 'development' && { + ]; + if (process.env.NODE_ENV === 'development') { + items.push({ id: 'dev', image: , label: 'Developer options', @@ -130,6 +132,7 @@ const getItems = () => { /> ), - }, - ]; + }); + } + return items; };