Key lightbox by id

This commit is contained in:
Dan Abramov
2024-11-02 00:49:53 +00:00
parent 68ab910d5a
commit f08e542995
2 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ function ImageViewingRoot({
}
return (
<ImageViewing
key={lightbox.index}
key={lightbox.id}
lightbox={lightbox}
onRequestClose={onRequestClose}
onPressSave={onPressSave}