mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed swiper re-rendering
This commit is contained in:
parent
158de7b24c
commit
805cde559b
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ const NodeImageSwiperBlock: FC<IProps> = ({ node }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.wrapper} key={node.id}>
|
<div className={styles.wrapper}>
|
||||||
<Swiper
|
<Swiper
|
||||||
initialSlide={0}
|
initialSlide={0}
|
||||||
slidesPerView="auto"
|
slidesPerView="auto"
|
||||||
|
|
|
@ -17,7 +17,7 @@ export const useNodeBlocks = (node: INode, isLoading: boolean) => {
|
||||||
createElement(block, {
|
createElement(block, {
|
||||||
node,
|
node,
|
||||||
isLoading,
|
isLoading,
|
||||||
key,
|
key: `${node.id}-${key}`,
|
||||||
}),
|
}),
|
||||||
[node, isLoading]
|
[node, isLoading]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue