fix(pdf-upload): correction de l ouverture en double et integration de la colonne d embedding manquante pour DocumentChunk
This commit is contained in:
@@ -73,8 +73,11 @@ export function NoteAttachments({ noteId, onOpenDocQA, onCountChange, triggerUpl
|
||||
}
|
||||
}, [attachments, fetchAttachments])
|
||||
|
||||
const lastTriggerRef = useRef(0)
|
||||
|
||||
useEffect(() => {
|
||||
if (triggerUpload && triggerUpload > 0) {
|
||||
if (triggerUpload && triggerUpload > lastTriggerRef.current) {
|
||||
lastTriggerRef.current = triggerUpload
|
||||
if (attachments.length > 0) {
|
||||
sectionRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user