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:
parent
16689ae3a6
commit
4eb605a398
4 changed files with 9 additions and 7 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue