diff --git a/frontend/src/documents/hooks/useDocumentsNavigation.ts b/frontend/src/documents/hooks/useDocumentsNavigation.ts index ec28476..2a4a913 100644 --- a/frontend/src/documents/hooks/useDocumentsNavigation.ts +++ b/frontend/src/documents/hooks/useDocumentsNavigation.ts @@ -103,9 +103,7 @@ export const useDocumentsNavigation = ({ onFolderSelect?.(activeRow.id as string); } else { const entry = getEntryByKey(activeRow.key); - // @ts-ignore - if (entry?.document) { - // @ts-ignore + if (entry && entry.type === 'document') { onPreview?.(entry.document); } }