mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-26 02:13:29 +08:00
fix: fetch all knowledge bases via pagination in link-to-dataset dialog (#17170)
This commit is contained in:
@@ -192,6 +192,7 @@ interface MultiSelectProps
|
||||
onSearchChange?: (value: string) => void;
|
||||
isSearching?: boolean;
|
||||
shouldFilter?: boolean;
|
||||
onListScroll?: (e: React.UIEvent<HTMLDivElement>) => void;
|
||||
}
|
||||
|
||||
export const MultiSelect = React.forwardRef<
|
||||
@@ -217,6 +218,7 @@ export const MultiSelect = React.forwardRef<
|
||||
onSearchChange,
|
||||
isSearching = false,
|
||||
shouldFilter,
|
||||
onListScroll,
|
||||
...props
|
||||
},
|
||||
ref,
|
||||
@@ -451,7 +453,7 @@ export const MultiSelect = React.forwardRef<
|
||||
onValueChange={onSearchChange}
|
||||
/>
|
||||
)}
|
||||
<CommandList className="mt-2">
|
||||
<CommandList className="mt-2" onScroll={onListScroll}>
|
||||
<CommandEmpty>
|
||||
{isSearching ? t('common.searching') : t('common.noDataFound')}
|
||||
</CommandEmpty>
|
||||
|
||||
Reference in New Issue
Block a user