mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
feat: update document tracking to use 'updated_at' timestamp instead of 'last_edited_at'
This commit is contained in:
parent
a313387e0f
commit
8c9aa68faa
28 changed files with 253 additions and 18 deletions
|
|
@ -104,7 +104,9 @@ export const useSearchSourceConnectors = (lazy: boolean = false, searchSpaceId?:
|
|||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (!lazy) {
|
||||
// Only auto-fetch if lazy is false AND searchSpaceId is provided
|
||||
// This prevents 400 errors when the hook is used without a searchSpaceId
|
||||
if (!lazy && searchSpaceId !== undefined) {
|
||||
fetchConnectors(searchSpaceId);
|
||||
}
|
||||
}, [lazy, fetchConnectors, searchSpaceId]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue