diff --git a/packages/openchs-android/src/action/mydashboard/FiltersActions.js b/packages/openchs-android/src/action/mydashboard/FiltersActions.js index 4b5c3c021..a74e91af2 100644 --- a/packages/openchs-android/src/action/mydashboard/FiltersActions.js +++ b/packages/openchs-android/src/action/mydashboard/FiltersActions.js @@ -3,6 +3,7 @@ import IndividualSearchCriteria from "../../service/query/IndividualSearchCriter import _ from "lodash"; import FormMappingService from "../../service/FormMappingService"; import {ArrayUtil} from "openchs-models"; +import AddressLevelState from '../common/AddressLevelsState'; class FiltersActions { @@ -33,6 +34,7 @@ class FiltersActions { filters: FiltersActions.cloneFilters(action.filters), locationSearchCriteria: action.locationSearchCriteria, addressLevelState: action.addressLevelState, + selectedCustomFilters: action.selectedCustomFilters, filterDate: {value: action.filterDate.value}, programs: action.programs, selectedPrograms: action.selectedPrograms, @@ -115,10 +117,14 @@ class FiltersActions { selectedSubjectType, programs, selectedPrograms, + selectedLocations: [], + addressLevelState: new AddressLevelState(), encounterTypes, selectedEncounterTypes: [], generalEncounterTypes, selectedGeneralEncounterTypes: [], + selectedCustomFilters: [], + selectedGenders: [], } } diff --git a/packages/openchs-android/src/views/filter/FiltersView.js b/packages/openchs-android/src/views/filter/FiltersView.js index 1bc1bb5d7..017c7b7bc 100644 --- a/packages/openchs-android/src/views/filter/FiltersView.js +++ b/packages/openchs-android/src/views/filter/FiltersView.js @@ -253,7 +253,7 @@ class FilterView extends AbstractComponent { } {!_.isEmpty(topLevelFilters) ? this.dispatchAction(FilterActionNames.CUSTOM_FILTER_CHANGE, {selectedCustomFilters})} /> : null} {this.customFilterService.filterTypePresent(filterScreenName, CustomFilter.type.Gender, this.state.selectedSubjectType.uuid) ? @@ -276,7 +276,7 @@ class FilterView extends AbstractComponent { userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/> : null} {!_.isEmpty(bottomLevelFilters) ? this.dispatchAction(FilterActionNames.CUSTOM_FILTER_CHANGE, {selectedCustomFilters})} addressLevelState={this.state.addressLevelState} /> : null}