1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

several bug fixes

This commit is contained in:
Fedor Katurov 2019-11-15 13:36:13 +07:00
parent f23b9166e1
commit 11348aa411
13 changed files with 281 additions and 110 deletions

View file

@ -228,12 +228,14 @@ const NodeImageSlideBlock: FC<IProps> = ({
</div>
)}
<ImageSwitcher
total={images.length}
current={current}
onChange={changeCurrent}
loaded={loaded}
/>
{!is_loading && (
<ImageSwitcher
total={images.length}
current={current}
onChange={changeCurrent}
loaded={loaded}
/>
)}
<div
className={styles.image_container}
@ -253,7 +255,7 @@ const NodeImageSlideBlock: FC<IProps> = ({
is_active: index === current && loaded[index]
})}
ref={setRef(index)}
key={file.id}
key={node.updated_at + file.id}
>
<img
className={styles.image}