Skip to content

Commit 25e7459

Browse files
committed
images: add index to key function
- so that multiple images can share the same source field
1 parent 7629837 commit 25e7459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/images/draw.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ module.exports = function draw(gd) {
145145

146146

147147
// Required for updating images
148-
function keyFunction(d) {
149-
return d.source;
148+
function keyFunction(d, i) {
149+
return d.source + i;
150150
}
151151

152152

0 commit comments

Comments
 (0)