PWV-15: Creating routing branch
This commit is contained in:
1 parent
e618e32341
commit
efb4ca23b5
24 files changed
+158
-437
No files matched your search
@@ -14,13 +14,14 @@ Template.measurementTable.onCreated(() => {
|
||||
// Get the current table layout
|
||||
const tableLayout = instance.data.measurementTableLayout.get();
|
||||
|
||||
const timepointApi = instance.data.timepointApi;
|
||||
let timepoints;
|
||||
if (!instance.data.timepointApi) {
|
||||
if (!timepointApi) {
|
||||
timepoints = [];
|
||||
} else if (tableLayout === 'key') {
|
||||
timepoints = instance.data.timepointApi.key();
|
||||
timepoints = timepointApi.key();
|
||||
} else {
|
||||
timepoints = instance.data.timepointApi.currentAndPrior();
|
||||
timepoints = timepointApi.currentAndPrior();
|
||||
}
|
||||
|
||||
// Return key timepoints
|
||||
|
||||
Reference in new issue
Block a user