mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
feat: Moved searchconnectors association from user to searchspace
- Need to move llm configs to searchspace
This commit is contained in:
parent
b3d8279931
commit
aea09a5dad
36 changed files with 578 additions and 223 deletions
|
|
@ -124,19 +124,20 @@ const ConnectorSelector = React.memo(
|
|||
onSelectionChange?: (connectorTypes: string[]) => void;
|
||||
selectedConnectors?: string[];
|
||||
}) => {
|
||||
const { search_space_id } = useParams();
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const { connectorSourceItems, isLoading, isLoaded, fetchConnectors } =
|
||||
useSearchSourceConnectors(true);
|
||||
useSearchSourceConnectors(true, Number(search_space_id));
|
||||
|
||||
const handleOpenChange = useCallback(
|
||||
(open: boolean) => {
|
||||
setIsOpen(open);
|
||||
if (open && !isLoaded) {
|
||||
fetchConnectors();
|
||||
fetchConnectors(Number(search_space_id));
|
||||
}
|
||||
},
|
||||
[fetchConnectors, isLoaded]
|
||||
[fetchConnectors, isLoaded, search_space_id]
|
||||
);
|
||||
|
||||
const handleConnectorToggle = useCallback(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue