mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +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 (
|
||||
<div className={styles.wrapper} key={node.id}>
|
||||
<div className={styles.wrapper}>
|
||||
<Swiper
|
||||
initialSlide={0}
|
||||
slidesPerView="auto"
|
||||
|
|
|
@ -17,7 +17,7 @@ export const useNodeBlocks = (node: INode, isLoading: boolean) => {
|
|||
createElement(block, {
|
||||
node,
|
||||
isLoading,
|
||||
key,
|
||||
key: `${node.id}-${key}`,
|
||||
}),
|
||||
[node, isLoading]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue