Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Sep 23, 2023
1 parent 885dd2b commit b22e0f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/popups/popupOption/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ class PopupOption extends React.Component<PopupOptionProps> {
};
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") {
Expand All @@ -142,7 +141,6 @@ class PopupOption extends React.Component<PopupOptionProps> {
);
}
});
console.log(highlightersByChapter);
renderHighlighters(
highlightersByChapter,
this.props.currentBook.format,
Expand Down
1 change: 0 additions & 1 deletion src/containers/htmlViewer/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class Viewer extends React.Component<ViewerProps, ViewerState> {
};
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") {
Expand Down
1 change: 0 additions & 1 deletion src/utils/serviceUtils/noteUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b22e0f1

Please sign in to comment.