OHIF-24 Retrieving Pallete Color tables on metadata request...

This commit is contained in:
Emanuel F. Oliveira authored and Leonardo Campos committed 2017-03-15 09:53:26 -03:00
1 parent d86cac112b
commit c27b1f2290
2 files changed
+16 -2

No files matched your search

@@ -13,8 +13,9 @@ Template.imageThumbnail.onCreated(() => {
instance.getThumbnailImageId = () => {
const stack = instance.data.thumbnail.stack;
const lastIndex = (stack.images.length || 1) - 1;
const imageIndex = Math.floor(lastIndex / 2);
const imageIndex = Math.floor(lastIndex / 2) !== 0 ? 0 : 0;
const imageInstance = stack.images[imageIndex];
return imageInstance.getImageId();
};
});