Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 10, 2024
1 parent 211db35 commit 638fa3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-pdf/src/StructTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export default function StructTree() {
}
}

function resetAnnotations() {
function resetStructTree() {
structTreeDispatch({ type: 'RESET' });
}

// biome-ignore lint/correctness/useExhaustiveDependencies: See https://github.com/biomejs/biome/issues/3080
useEffect(resetAnnotations, [structTreeDispatch, page]);
useEffect(resetStructTree, [structTreeDispatch, page]);

function loadStructTree() {
if (customTextRenderer) {
Expand Down

0 comments on commit 638fa3e

Please sign in to comment.