From e74053d936776eddd5287635ba7cfd6f29f25065 Mon Sep 17 00:00:00 2001 From: Zoe Hayes Date: Mon, 29 Apr 2024 16:43:34 -0400 Subject: [PATCH] fix: fix QueryItem.ValueSelector.Cascader's selectedDisplayValue type --- src/components/data-entry/QueryItem/Cascader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/data-entry/QueryItem/Cascader.tsx b/src/components/data-entry/QueryItem/Cascader.tsx index 4539c8d1e..f0aede941 100644 --- a/src/components/data-entry/QueryItem/Cascader.tsx +++ b/src/components/data-entry/QueryItem/Cascader.tsx @@ -45,7 +45,7 @@ export const Cascader = (props: ICascaderProps) => { const [items] = useState(props.options ?? options) const [searchValue, setSearchValue] = useState('') const [selectedValue, setSelectedValue] = useState<(number | string)[]>(props.value ?? ['']) - const [selectedDisplayValue, setSelectedDisplayValue] = useState([]) + const [selectedDisplayValue, setSelectedDisplayValue] = useState("") const [isOpen, setIsOpen] = useState(false) const onSearch = (value: string) => {