From ed724816dd37667ab52cd8be7f17716505d5b4b6 Mon Sep 17 00:00:00 2001 From: Jason Klotzer Date: Fri, 22 Jan 2021 19:09:05 +0000 Subject: [PATCH] fixes #2249 --- platform/viewer/src/studylist/StudyListRoute.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/platform/viewer/src/studylist/StudyListRoute.js b/platform/viewer/src/studylist/StudyListRoute.js index 2808937ea44..3f541fe0f5f 100644 --- a/platform/viewer/src/studylist/StudyListRoute.js +++ b/platform/viewer/src/studylist/StudyListRoute.js @@ -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, @@ -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,