fixed metro stations in filters

This commit is contained in:
Dmitriy Shishkov 2023-05-17 10:49:05 +03:00
parent 8af5bd36d9
commit fb7f553915
Signed by: dm1sh
GPG Key ID: 027994B0AA357688

View File

@ -27,7 +27,7 @@ function Filters({ filter, setFilter, filterShown, setFilterShown }) {
Фильтрация Фильтрация
</Modal.Title> </Modal.Title>
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body>
<Form onSubmit={handleSubmit}> <Form onSubmit={handleSubmit}>
<Form.Group className="mb-3" controlId="categoryFilter"> <Form.Group className="mb-3" controlId="categoryFilter">
@ -55,9 +55,11 @@ function Filters({ filter, setFilter, filterShown, setFilterShown }) {
<option value=""> <option value="">
Выберите станцию метро Выберите станцию метро
</option> </option>
{metros.map( {Object.entries(metros).map(
(metro) => ([branch, stations]) =>
<option key={metro} value={metro}>{metro}</option> stations.map(metro =>
<option key={metro} value={metro}>{metro}</option>
)
)} )}
</Form.Select> </Form.Select>
</Form.Group> </Form.Group>