From dd0d88f65098f715b726b05932f886ce158f589c Mon Sep 17 00:00:00 2001 From: Florian Sommariva Date: Fri, 7 Apr 2023 15:00:03 +0200 Subject: [PATCH] Handle cities and districts values as string like others filters values --- frontend/src/modules/filters/city/adapter.ts | 2 +- frontend/src/modules/filters/district/adapter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/modules/filters/city/adapter.ts b/frontend/src/modules/filters/city/adapter.ts index 6c03973a2..be378fd52 100644 --- a/frontend/src/modules/filters/city/adapter.ts +++ b/frontend/src/modules/filters/city/adapter.ts @@ -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, })), }); diff --git a/frontend/src/modules/filters/district/adapter.ts b/frontend/src/modules/filters/district/adapter.ts index 5447fa3f1..f8eb5d2c8 100644 --- a/frontend/src/modules/filters/district/adapter.ts +++ b/frontend/src/modules/filters/district/adapter.ts @@ -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, })), });