mirror of
https://github.com/langgenius/dify.git
synced 2026-01-06 06:26:00 +00:00
fix: type for tool list
This commit is contained in:
@@ -18,13 +18,13 @@ type Props = {
|
||||
disableMaxWidth?: boolean
|
||||
}
|
||||
|
||||
const List = ({
|
||||
const List = forwardRef<{ handleScroll: () => void }, Props>(({
|
||||
wrapElemRef,
|
||||
searchText,
|
||||
tags,
|
||||
list,
|
||||
disableMaxWidth = false,
|
||||
}: Props, ref: any) => {
|
||||
}, ref) => {
|
||||
const { t } = useTranslation()
|
||||
const hasFilter = !searchText
|
||||
const hasRes = list.length > 0
|
||||
@@ -120,5 +120,8 @@ const List = ({
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
export default forwardRef(List)
|
||||
})
|
||||
|
||||
List.displayName = 'List'
|
||||
|
||||
export default List
|
||||
|
||||
Reference in New Issue
Block a user