diff --git a/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx b/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx index 45dc5057..930b16af 100644 --- a/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx +++ b/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx @@ -682,7 +682,6 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => { const color = settings.globalReadSettings.highlightStyles[style]; setSelectedStyle(style); setSelectedColor(color); - console.log('Adding annotation:', cfi, 'style:', style, 'color:', color); const annotation: BookNote = { id: uniqueId(), type: 'annotation', diff --git a/apps/readest-app/src/app/reader/hooks/useNotesSync.ts b/apps/readest-app/src/app/reader/hooks/useNotesSync.ts index 415e0817..f405138f 100644 --- a/apps/readest-app/src/app/reader/hooks/useNotesSync.ts +++ b/apps/readest-app/src/app/reader/hooks/useNotesSync.ts @@ -177,7 +177,7 @@ export const useNotesSync = (bookKey: string) => { convertedNotes.forEach((note) => { if (note.cfi) { const index = getIndexFromCfi(note.cfi); - if (index === view?.renderer.primaryIndex) { + if (!note.deletedAt && index === view?.renderer.primaryIndex) { view.addAnnotation(note); } }