fix: resolve various tracked exceptions in ph (#3584)
* fix: handle synced bookmarks without cfi * chore: clean up some exceptions in ph
This commit is contained in:
@@ -333,7 +333,11 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
|
||||
getIndexFromCfi(booknote.cfi) === detail.index,
|
||||
)
|
||||
.map((annotation) => {
|
||||
view?.addAnnotation(annotation);
|
||||
try {
|
||||
view?.addAnnotation(annotation);
|
||||
} catch (err) {
|
||||
console.warn('Failed to add annotation', { annotation, error: err });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user