Re-rendering the thumbnail when external data is changed
This commit is contained in:
1 parent
41fb606b2a
commit
66dfefbb14
3 files changed
+34
-31
No files matched your search
@@ -16,10 +16,10 @@ Template.registerHelper('studyThumbnails', study => {
|
||||
const thumbnails = [];
|
||||
|
||||
// Iterate over the stacks and add one by one with its index
|
||||
_.each(stacks, (stack, index) => {
|
||||
_.each(stacks, (stack, thumbnailIndex) => {
|
||||
thumbnails.push({
|
||||
thumbnailIndex: index,
|
||||
stack: stack
|
||||
thumbnailIndex,
|
||||
stack
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user