fix(api): normalize list query responses to arrays#317
fix(api): normalize list query responses to arrays#317volcano303 wants to merge 1 commit intoentrius:testfrom
Conversation
|
Closing — the backend list endpoints already return arrays; guarding every consumer with ensureArray adds boilerplate for a scenario that doesn't occur in practice. If a specific endpoint is misbehaving, that should be fixed at the API layer. |
|
Hi, @anderdc I rechecked this on a clean local checkout of the current Repro:
Observed error:
So I agree the previous I can rework this into a much narrower follow-up PR limited to the specific failing path instead of normalizing every list endpoint globally. If you prefer this to be fixed strictly at the backend/API contract layer instead, I’m fine with that too, but I wanted to call out that the crash is currently reproducible on |
Summary
Related Issues
Follow-up to the page-only theme token refactor PR (#263).
Addresses runtime crashes such as:
miners.map is not a functionallPRs.forEach is not a functionType of Change
Checklist
npm run format:checkhas been runnpm run linthas been runnpm run buildpasses