Skip to content

Commit

Permalink
fix: fix QueryItem.ValueSelector.Cascader's selectedDisplayValue type
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeAstra committed Apr 29, 2024
1 parent aac4829 commit e74053d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/data-entry/QueryItem/Cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DefaultOptionType[]>([])
const [selectedDisplayValue, setSelectedDisplayValue] = useState("")
const [isOpen, setIsOpen] = useState(false)

const onSearch = (value: string) => {
Expand Down

0 comments on commit e74053d

Please sign in to comment.