mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +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
|
|
@ -15,7 +15,7 @@ interface EditorContent {
|
|||
document_id: number;
|
||||
title: string;
|
||||
blocknote_document: any;
|
||||
last_edited_at: string | null;
|
||||
updated_at: string | null;
|
||||
}
|
||||
|
||||
export default function EditorPage() {
|
||||
|
|
|
|||
|
|
@ -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