Skip to content

Commit 0460cf4

Browse files
stephanebissonStephane Bisson
andauthored
Fix Gallery/About (#375)
Co-authored-by: Stephane Bisson <sbisson@wikimedia.org>
1 parent aa2f6ce commit 0460cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Gallery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const Gallery = ({ close, closeAll, items, startFileName, lang, dir }) =>
109109
[dir === 'rtl' ? 'onKeyFixedArrowLeft' : 'onKeyFixedArrowRight']: onNextImage,
110110
[dir === 'rtl' ? 'onKeyFixedArrowRight' : 'onKeyFixedArrowLeft']: onPrevImage,
111111
onKeyBackspace: close
112-
}, [currentIndex])
112+
}, [currentIndex, mediaInfo])
113113

114114
return (
115115
<div class='gallery-view' ref={containerRef}>

0 commit comments

Comments
 (0)