Skip to content

Commit

Permalink
Merge pull request #228 from zimmerman-team/feat/1894
Browse files Browse the repository at this point in the history
1894: Move or remove ORG id
  • Loading branch information
Jim Fung authored Oct 14, 2020
2 parents 6a1e927 + b4e527e commit b4c5ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const CoreFiltersFragment = () => {
<ConnectedSelect
{...fragmentConfig.organisations}
value={store.get('organisations')}
options={fetchedsectorOrganisations}
options={fetchedsectorOrganisations.sort((a, b) => a.reporting_organisation.localeCompare(b.reporting_organisation))}
onChange={(e) => store.set('organisations')(e)}
// placeholder={`All (${fetchedsectorOrganisations.length})`}
placeholder={`All organisations`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const fragmentConfig: FragmentModel = {
// helperTextUrl: 'http://reference.iatistandard.org/203/codelists/Sector/',
placeholder: 'All (0)',
getOptionLabel: (option: OrganisationModel) =>
`${option.reporting_organisation_identifier}: ${option.reporting_organisation}`,
`${option.reporting_organisation} (${option.reporting_organisation_identifier})`,
getOptionValue: (option: OrganisationModel) =>
option.reporting_organisation_identifier,
},
Expand Down

0 comments on commit b4c5ec1

Please sign in to comment.