Displaying the highest maxTargets limit

This commit is contained in:
Bruno Alves de Faria 2017-06-23 09:07:21 -03:00
parent ac2df0b3d0
commit 8ddec37c94
3 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,6 @@ Meteor.startup(() => {
Template.viewer.onCreated(() => {
Session.set('ViewerReady', false);
console.warn('>>>>viewer.data', Template.instance().data);
const instance = Template.instance();

View File

@ -25,10 +25,13 @@ export class CriteriaEvaluator {
}
getMaxTargets() {
let result;
let result = 0;
_.each(this.criteria, criterion => {
if (criterion instanceof Criteria.MaxTargetsCriterion) {
result = criterion.options.limit;
const { limit } = criterion.options;
if (limit > result) {
result = limit;
}
}
});
return result;

View File

@ -44,7 +44,6 @@ export const prepareViewerData = ({ studyInstanceUids, timepointId, timepointsFi
// Find the timepoint by ID and load the studies from it
OHIF.studylist.timepointApi.retrieveTimepoints(timepointsFilter).then(() => {
const viewerData = buildViewerDataFromTimepointId(timepointId);
console.warn('>>>>', viewerData);
processData(viewerData);
}).catch(reject);
}