fix: also export newly created annotations (#704)

This commit is contained in:
Huang Xin
2025-03-25 13:26:11 +08:00
committed by GitHub
parent f22ce1c225
commit 3f3c6983ba
@@ -448,6 +448,7 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
const { bookDoc, book } = bookData;
if (!bookDoc || !book || !bookDoc.toc) return;
const config = getConfig(bookKey)!;
const { booknotes: allNotes = [] } = config;
const booknotes = allNotes.filter((note) => !note.deletedAt);
if (booknotes.length === 0) {