Fixing QuickSwitch issue with Additional Timepoints
This commit is contained in:
1 parent
4c8190e0cc
commit
870ed66013
2 files changed
+8
-1
No files matched your search
+7
@@ -140,6 +140,13 @@ Template.studyTimepointBrowser.helpers({
|
||||
return Template.instance().showAdditionalTimepoints.get();
|
||||
},
|
||||
|
||||
hasAdditionalTimepoints() {
|
||||
const instance = Template.instance();
|
||||
const { timepointApi } = instance.data;
|
||||
const allTimepoints = timepointApi && timepointApi.all();
|
||||
return allTimepoints && allTimepoints.length > 1;
|
||||
},
|
||||
|
||||
// Get the timepoints to be listed
|
||||
timepoints() {
|
||||
const instance = Template.instance();
|
||||
|
||||
Reference in new issue
Block a user