Commit ac067ec
fix(jamlSearchContext): expose selectedFilterKey/customJamlText state
The context was declaring JamlSearchState with only jamlText/setJamlText,
but JamlView.tsx and navbar.tsx both destructure selectedFilterKey,
setSelectedFilterKey, customJamlText, and setCustomJamlText from
useJamlSearch(). Since those weren't provided, destructuring returned
undefined and calling setSelectedFilterKey(value) from the dropdown
threw "is not a function" silently, leaving the editor text frozen.
Added selectedFilterKey + setSelectedFilterKey + customJamlText +
setCustomJamlText to the context. Dropdown now updates.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d31b4e9 commit ac067ec
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | | - | |
59 | | - | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| |||
0 commit comments