Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed May 17, 2024
1 parent 0c02288 commit 3798b43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions streamlit_pdf_viewer/frontend/src/PdfViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ export default {
if (isRenderingAllPages) {
return props.args.annotations;
}
const filteredAnnotations = props.args.annotations.filter(anno => {
return props.args.annotations.filter(anno => {
return props.args.pages_to_render.includes(Number(anno.page))
})
return filteredAnnotations;
});
const pdfContainerStyle = computed(() => ({
Expand Down

0 comments on commit 3798b43

Please sign in to comment.