From 0478e4cde5c7645451ac0059ade32a8993ab2025 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Wed, 17 Dec 2025 16:26:23 +0800 Subject: [PATCH] Refactor clear button implementation in type selector --- .../components/app/type-selector/index.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/web/app/components/app/type-selector/index.tsx b/web/app/components/app/type-selector/index.tsx index c3b881e652..5b5cc303df 100644 --- a/web/app/components/app/type-selector/index.tsx +++ b/web/app/components/app/type-selector/index.tsx @@ -38,17 +38,21 @@ const AppTypeSelector = ({ value, onChange }: AppSelectorProps) => { 'flex cursor-pointer items-center justify-between space-x-1 rounded-md px-2 hover:bg-state-base-hover', )}> - {value && value.length > 0 && } + {value && value.length > 0 && ( + + )}