Skip to content

Commit

Permalink
Handle cities and districts values as string like others filters values
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Apr 17, 2023
1 parent b5a4a64 commit dd0d88f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/modules/filters/city/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { RawCity } from './interface';
export const adaptCityFilter = (rawCities: RawCity[]): FilterWithoutType => ({
id: CITY_ID,
options: rawCities.map(rawCity => ({
value: rawCity.id,
value: `${rawCity.id}`,
label: rawCity.name,
})),
});
2 changes: 1 addition & 1 deletion frontend/src/modules/filters/district/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { RawDistrict } from './interface';
export const adaptDistrictFilter = (rawDistricts: RawDistrict[]): FilterWithoutType => ({
id: DISTRICT_ID,
options: rawDistricts.map(rawDistrict => ({
value: rawDistrict.id,
value: `${rawDistrict.id}`,
label: rawDistrict.name,
})),
});

0 comments on commit dd0d88f

Please sign in to comment.