From 97cbf076f55875365107cf6f7055b554a5d84423 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Wed, 13 May 2020 00:31:50 -0400 Subject: [PATCH] Remove unused filtersMeta --- .../StudyListContainer/StudyListContainer.jsx | 59 ------------------- 1 file changed, 59 deletions(-) diff --git a/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx b/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx index 3cc3b634c..c0997f301 100644 --- a/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx +++ b/platform/viewer/src/routes/StudyListContainer/StudyListContainer.jsx @@ -139,65 +139,6 @@ function StudyListContainer({ history, data: studies, dataSource }) { // eslint-disable-next-line react-hooks/exhaustive-deps }, [expandedRows, studies]); - const filtersMeta = [ - { - name: 'patientName', - displayName: 'Patient Name', - inputType: 'Text', - isSortable: true, - gridCol: 4, - }, - { - name: 'mrn', - displayName: 'MRN', - inputType: 'Text', - isSortable: true, - gridCol: 2, - }, - { - name: 'studyDate', - displayName: 'Study date', - inputType: 'DateRange', - isSortable: true, - gridCol: 5, - }, - { - name: 'description', - displayName: 'Description', - inputType: 'Text', - isSortable: true, - gridCol: 4, - }, - { - name: 'modalities', - displayName: 'Modality', - inputType: 'MultiSelect', - inputProps: { - options: [ - { value: 'SEG', label: 'SEG' }, - { value: 'CT', label: 'CT' }, - { value: 'MR', label: 'MR' }, - { value: 'SR', label: 'SR' }, - ], - }, - isSortable: true, - gridCol: 3, - }, - { - name: 'accession', - displayName: 'Accession', - inputType: 'Text', - isSortable: true, - gridCol: 4, - }, - { - name: 'instances', - displayName: 'Instances', - inputType: 'None', - isSortable: true, - gridCol: 2, - }, - ]; const isFiltering = (filterValues, defaultFilterValues) => { return Object.keys(defaultFilterValues).some(name => { return filterValues[name] !== defaultFilterValues[name];