Skip to content

Commit

Permalink
fix: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Aug 19, 2023
1 parent f714bc6 commit 9fc4770
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function AttachmentViewPdf({file, encryptedSourceUrl, isFocused, isUsedInCarouse

useEffect(() => {
attachmentCarouselPagerContext.onPinchGestureChange(false);
// eslint-disable-next-line react-hooks/exhaustive-deps -- we just want to call this function when component is mounted
}, []);

const onScaleChanged = useCallback(
Expand Down

0 comments on commit 9fc4770

Please sign in to comment.