From c52d0fc2b54c7e048711b475a09c86eb0b52b1b9 Mon Sep 17 00:00:00 2001 From: Rinsvent Date: Wed, 11 Jan 2023 23:23:18 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D0=BC=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D0=BF=D1=86?= =?UTF-8?q?=D0=B8=D0=B9=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=B8=D1=85=20=D0=BD=D0=B5=20=D0=BC=D0=BE=D0=B3=D1=83=D1=82=20?= =?UTF-8?q?=D0=B8=D0=BC=D0=B5=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/elements/command/elements/options/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/elements/command/elements/options/index.tsx b/components/elements/command/elements/options/index.tsx index 429f99a..8e59c24 100644 --- a/components/elements/command/elements/options/index.tsx +++ b/components/elements/command/elements/options/index.tsx @@ -36,7 +36,7 @@ export default function Options({optionList}: OptionsInterface) { ...ol } if (selectedOption) { - temp[selectedOption.name] = ''; + temp[selectedOption.name] = selectedOption.acceptValue ? '' : null; } setOptionList(temp) }