Skip to content

fix(api): restore Axios array param serialization for NestJS#407

Merged
tompscanlan merged 1 commit into
mainfrom
fix/axios-array-params
Apr 5, 2026
Merged

fix(api): restore Axios array param serialization for NestJS#407
tompscanlan merged 1 commit into
mainfrom
fix/axios-array-params

Conversation

@tompscanlan

@tompscanlan tompscanlan commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Axios 1.12+ changed default array serialization from repeated params (categories=X&categories=Y) to bracket notation (categories[]=X&categories[]=Y)
  • NestJS query DTOs don't recognize bracket notation, so category filtering on the events page silently stopped working after the axios 1.9 to 1.12 bump in Bump axios from 1.9.0 to 1.12.2 #222
  • Sets paramsSerializer: { indexes: null } on the Axios instance to restore pre-1.12 behavior

Test plan

  • Open /events page, select a category filter — only matching events should appear
  • Verify network tab shows categories=Music not categories[]=Music
  • Verify other array query params (if any) still work

…ility

Axios 1.12+ changed default array serialization from repeated params
(categories=X&categories=Y) to bracket notation (categories[]=X).
NestJS query DTOs don't recognize bracket notation, so category
filtering on the events page silently stopped working after the
axios 1.9→1.12 bump in #222.
@tompscanlan tompscanlan merged commit efee870 into main Apr 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant