From 1dbf34cd94178c42b0e56a44ca94d17e8142f407 Mon Sep 17 00:00:00 2001 From: Emiel Van Severen Date: Wed, 17 Jul 2024 00:09:44 +0200 Subject: [PATCH] Chore: add missing property to clear itemselectquery --- .../web-main/src/components/selects/ItemSelectQuery/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web-main/src/components/selects/ItemSelectQuery/index.tsx b/packages/web-main/src/components/selects/ItemSelectQuery/index.tsx index 1e34d9b983..15a5dea239 100644 --- a/packages/web-main/src/components/selects/ItemSelectQuery/index.tsx +++ b/packages/web-main/src/components/selects/ItemSelectQuery/index.tsx @@ -44,6 +44,7 @@ export const ItemSelect: FC = ({ placeholder = 'Select an item', gameServerId, multiple, + canClear, }) => { const [itemName, setItemName] = useState(''); const { field } = useController({ name, control }); @@ -88,6 +89,7 @@ export const ItemSelect: FC = ({ required={required} loading={loading} label={label} + canClear={canClear} gameServer={gameServer} setItemName={setItemName} isLoadingData={isLoadingItems} @@ -119,6 +121,7 @@ export const ItemSelectQueryView: FC = ({ loading, isLoadingData = false, setItemName, + canClear, label, }) => { const renderIcon = useCallback((gameServer: GameServerOutputDTO, item: ItemsOutputDTO) => { @@ -151,6 +154,7 @@ export const ItemSelectQueryView: FC = ({ multiple={multiple} hasMargin={hasMargin} description={description} + canClear={canClear} render={(selectedItems) => { if (selectedItems.length === 0) { return
Select item...
;