Skip to content

Commit ca706d2

Browse files
committed
feat(critical facilities filter): display ownershps data in select
1 parent 9b7c6b0 commit ca706d2

File tree

1 file changed

+8
-4
lines changed
  • src/GeographicalFeatures/CriticalFacilities/Filters

1 file changed

+8
-4
lines changed

src/GeographicalFeatures/CriticalFacilities/Filters/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ import isFunction from 'lodash/isFunction';
88
import SearchableSelectInput from '../../../components/SearchableSelectInput';
99

1010
/* http actions */
11-
const { getAgencies, getFeatureTypes, getAdministrativeAreas } = httpActions;
11+
const {
12+
getAgencies,
13+
getFeatureTypes,
14+
getAdministrativeAreas,
15+
getPartyOwnerships,
16+
} = httpActions;
1217

1318
/* state actions */
14-
const { clearFeatureFilters, filterFeatures, getPartyOwnerships } =
15-
reduxActions;
19+
const { clearFeatureFilters, filterFeatures } = reduxActions;
1620

1721
/* ui */
1822
const labelCol = {
@@ -161,7 +165,7 @@ const FeatureFiltersForm = ({
161165
onSearch={(optns = {}) => {
162166
return getPartyOwnerships(optns);
163167
}}
164-
optionLabel={(ownership) => get(ownership, 'name')}
168+
optionLabel={(ownership) => get(ownership, 'strings.name.en')}
165169
optionValue="_id"
166170
mode="multiple"
167171
onCache={(ownerships) =>

0 commit comments

Comments
 (0)