Fixing createStacks and imageThumbnail

This commit is contained in:
Emanuel F. Oliveira authored and Eloízio Salgado committed 2017-03-02 10:16:09 -03:00
1 parent 2b22aecc15
commit e75330fe87
4 files changed
+8 -8

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.getData());
return imageInstance.getImageId();
};
});