From c1b46e7ca90cabd44aebd802c1a3cfc347cdba08 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Sat, 23 Sep 2023 13:15:43 +0800 Subject: [PATCH] fix bug Former-commit-id: b22e0f1b2336c16a4b656fb7e1c72b97ed61a6ba --- src/components/popups/popupOption/component.tsx | 2 -- src/containers/htmlViewer/component.tsx | 1 - src/utils/serviceUtils/noteUtil.tsx | 1 - 3 files changed, 4 deletions(-) diff --git a/src/components/popups/popupOption/component.tsx b/src/components/popups/popupOption/component.tsx index 5f93c9c5..12ddc28d 100644 --- a/src/components/popups/popupOption/component.tsx +++ b/src/components/popups/popupOption/component.tsx @@ -123,7 +123,6 @@ class PopupOption extends React.Component { }; handleHighlight = () => { let highlighters: any = this.props.notes; - console.log(highlighters); if (!highlighters) return; let highlightersByChapter = highlighters.filter((item: Note) => { if (this.props.currentBook.format !== "PDF") { @@ -142,7 +141,6 @@ class PopupOption extends React.Component { ); } }); - console.log(highlightersByChapter); renderHighlighters( highlightersByChapter, this.props.currentBook.format, diff --git a/src/containers/htmlViewer/component.tsx b/src/containers/htmlViewer/component.tsx index 1a586d94..509fab5c 100644 --- a/src/containers/htmlViewer/component.tsx +++ b/src/containers/htmlViewer/component.tsx @@ -82,7 +82,6 @@ class Viewer extends React.Component { }; handleHighlight = (rendition: any) => { let highlighters: any = this.props.notes; - console.log(highlighters); if (!highlighters) return; let highlightersByChapter = highlighters.filter((item: Note) => { if (this.props.currentBook.format !== "PDF") { diff --git a/src/utils/serviceUtils/noteUtil.tsx b/src/utils/serviceUtils/noteUtil.tsx index 08545a8c..c2b347ca 100644 --- a/src/utils/serviceUtils/noteUtil.tsx +++ b/src/utils/serviceUtils/noteUtil.tsx @@ -17,7 +17,6 @@ export const renderHighlighters = async ( "line-3", ]; clearHighlight(); - console.log(notes); for (let index = 0; index < notes.length; index++) { const item = notes[index]; try {