Commit b9b828c
committed
fix(event-scripts): Script Type dropdown empty for services with underscores
The response interceptor maps snake_case keys to camelCase on all /api
responses. The Script Type dropdown lookup was hard-coded to handle only
api_docs -> apiDocs, so any other service with an underscore in its name
(triskele_db, local_file, prism_prod, etc.) produced a response.<key>
lookup that missed the already-transformed key, leaving ungroupedEventItems
empty and the dropdown appearing unselectable.
Use snakeToCamelString on the lookup key so every underscored service
resolves correctly.1 parent 592631f commit b9b828c
4 files changed
Lines changed: 12 additions & 8 deletions
File tree
- dist
- src/app/adf-event-scripts/df-script-details
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
| |||
0 commit comments