Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: remove unnecessary 'asChild' prop from FilterButton component (#16094)

chanxcac87d7f77b4
diff --git a/web/src/components/list-filter-bar/index.tsx b/web/src/components/list-filter-bar/index.tsx
index ae45aa2a81..95347e02d6 100644
--- a/web/src/components/list-filter-bar/index.tsx
+++ b/web/src/components/list-filter-bar/index.tsx
@@ -29,7 +29,6 @@ export const FilterButton = React.forwardRef<
<Button
variant="outline"
size={count > 0 ? 'default' : 'icon'}
- asChild
{...props}
ref={ref}
>
@@ -123,7 +122,6 @@ export default function ListFilterBar({
<FilterButton count={filterCount}></FilterButton>
</FilterPopover>
)}
-
{showSearch && (
<SearchInput
value={searchString}