Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions frontend/src/components/annotator/pdfViewer/Highlights.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default {
commentStates(newVal, oldVal) {
newVal.filter(s => !oldVal.includes(s)).forEach(state => {
const annotation = this.getAnnotationByCommentState(state);
if (!annotation) {return false};
const annotationPage = annotation?.selectors?.target?.[0]?.selector?.find(s => s.type === 'PagePositionSelector').number;
const isCollapsed = this.collapsedAnnotationIds.includes(annotation.id);
const isPageLoaded = this.isPdfPageLoaded(annotationPage);
Expand Down Expand Up @@ -518,9 +519,10 @@ export default {
return textNodes;
},
getAnnotationByCommentState(state) {
let comment = this.$store.getters['table/comment/get'](state.commentId);
let annotation = this.$store.getters['table/annotation/get'](comment.annotationId);
return annotation;
const comment = this.$store.getters['table/comment/get'](state.commentId);
if (!comment) return null;
const annotation = this.$store.getters['table/annotation/get'](comment.annotationId);
return annotation || null;
},
}
}
Expand Down
32 changes: 32 additions & 0 deletions logs/activity-2026-03-17.log

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions logs/activity-2026-03-18.log

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions logs/complete-2026-03-17.log

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions logs/complete-2026-03-18.log

Large diffs are not rendered by default.

Empty file added logs/error-2026-03-17.log
Empty file.
Empty file added logs/error-2026-03-18.log
Empty file.
Loading