fixed metro stations in filters
This commit is contained in:
parent
8af5bd36d9
commit
fb7f553915
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user