Skip to content

Commit

Permalink
fixes #2249
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonklotzer committed Jan 22, 2021
1 parent 18a8e05 commit ed72481
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions platform/viewer/src/studylist/StudyListRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,6 @@ async function getStudyList(
} = filters;
const sortFieldName = sort.fieldName || 'PatientName';
const sortDirection = sort.direction || 'desc';
const studyDateFrom =
filters.studyDateFrom ||
moment()
.subtract(25000, 'days')
.toDate();
const studyDateTo = filters.studyDateTo || new Date();

const mappedFilters = {
PatientID: filters.PatientID,
Expand All @@ -350,8 +344,8 @@ async function getStudyList(
StudyDescription: filters.StudyDescription,
ModalitiesInStudy: filters.modalities,
// NEVER CHANGE
studyDateFrom,
studyDateTo,
studyDateFrom: filters.studyDateFrom,
studyDateTo: filters.studyDateTo,
limit: rowsPerPage,
offset: pageNumber * rowsPerPage,
fuzzymatching: server.supportsFuzzyMatching === true,
Expand Down

0 comments on commit ed72481

Please sign in to comment.