From 3db9a0039c74657e5949a3859176beb803320a55 Mon Sep 17 00:00:00 2001 From: Elvy <88881326+EepyElvyra@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:26:26 +0100 Subject: [PATCH] change a bit more --- .../components/SettingArrayComponent.tsx | 43 +++++++++---------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/src/components/PluginSettings/components/SettingArrayComponent.tsx b/src/components/PluginSettings/components/SettingArrayComponent.tsx index 35ee43cb0..ea6b2912a 100644 --- a/src/components/PluginSettings/components/SettingArrayComponent.tsx +++ b/src/components/PluginSettings/components/SettingArrayComponent.tsx @@ -437,32 +437,31 @@ export function SettingArrayComponent({ > setText(v)} value={text} /> - {text === "" ? null : - !isNaN(Number(text)) ? - : - < Button - id={cl("search-button")} - size={Button.Sizes.MIN} - onClick={() => openSearchModal(text)} - style={ - { background: "none" } - } - > - - + {!isNaN(Number(text)) || text === "" ? + : + < Button + id={cl("search-button")} + size={Button.Sizes.MIN} + onClick={() => openSearchModal(text)} + style={ + { background: "none" } + } + > + + }