1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

bump swiperjs, fix types

This commit is contained in:
Fedor Katurov 2025-02-12 18:01:21 +07:00
parent 16689ae3a6
commit 4eb605a398
4 changed files with 9 additions and 7 deletions

View file

@ -57,7 +57,9 @@ const NodeImageSwiperBlock: FC<Props> = observer(({ node }) => {
useEffect(() => {
controlledSwiper?.slideTo(0, 0);
return () => controlledSwiper?.slideTo(0, 0);
return () => {
controlledSwiper?.slideTo(0, 0);
};
}, [controlledSwiper, images, node.id]);
useEffect(() => {