Commit 48ddea6
committed
refactor(shared): drop Object.entries cast, use stable form name on CompanySizeFilter
- Switch to `Object.keys` + single `CompanySizeRange[]` cast, avoiding the
unsound tuple cast on `Object.entries` flagged by review.
- Decouple the form field `name` ("sizeRange") from the DOM `id` so multiple
filter instances on the same page stay addressable.1 parent 19e9552 commit 48ddea6
1 file changed
Lines changed: 4 additions & 6 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | | - | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
0 commit comments