From f840b7db0cb82f8db36c0401fa7cbe94211f044c Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Tue, 7 Jan 2025 15:19:46 +0800 Subject: [PATCH] fix: type for tool list --- .../block-selector/market-place-plugin/list.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx index ace5443bd5..8509faf253 100644 --- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx +++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx @@ -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 = ({ ) -} -export default forwardRef(List) +}) + +List.displayName = 'List' + +export default List