LT-251: Fixing thumbnails issues on the left sidebar (study browser)
This commit is contained in:
1 parent
b3f35cf3e9
commit
bd7c847443
2 files changed
+3
-4
No files matched your search
@@ -46,8 +46,6 @@ Template.imageThumbnail.onRendered(() => {
|
||||
|
||||
// Run this computation every time the current study is changed
|
||||
instance.autorun(() => {
|
||||
const currentData = Template.currentData();
|
||||
|
||||
// Check if there is a reactive var set for current study
|
||||
if (instance.data.currentStudy) {
|
||||
// Register a dependency from this computation on current study
|
||||
@@ -55,7 +53,7 @@ Template.imageThumbnail.onRendered(() => {
|
||||
}
|
||||
|
||||
// Wait for the new data and reresh the image thumbnail
|
||||
Meteor.defer(() => {
|
||||
Tracker.afterFlush(() => {
|
||||
instance.refreshImage();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user