Bug Fix: Only first frame of multiframe images is being rendered.

This commit is contained in:
Emanuel F. Oliveira committed 2017-01-29 22:11:18 -02:00
1 parent e2322ec05a
commit 75e027fee5
6 files changed
+29 -31

No files matched your search

@@ -15,7 +15,7 @@ Template.imageThumbnail.onCreated(() => {
const lastIndex = (stack.images.length || 1) - 1;
const imageIndex = Math.floor(lastIndex / 2);
const imageInstance = stack.images[imageIndex];
return getImageId(imageInstance);
return getImageId(imageInstance.getData());
};
});