• Aryan Noshirvnai's avatar
    Fix error messages rendering as literal "[object Object]" · 946930e8
    Aryan Noshirvnai authored
    apiFetch assumed detail was always a string, but FastAPI's own 422
    validation errors shape it as a list of {loc, msg, type, ...} objects
    - that list became the ApiError's message, and React stringified it
    to the literal text "[object Object]" wherever it got rendered (hit
    live on prod's Sign up form). Extracts and joins the real msg from
    each validation item instead, falling back to the generic status
    message when detail isn't a recognizable shape.
    946930e8
Name
Last commit
Last update
..
auth.ts Loading commit data...
client.test.ts Loading commit data...
client.ts Loading commit data...
discovery.ts Loading commit data...
dm.ts Loading commit data...
dmSocket.ts Loading commit data...
home.ts Loading commit data...
jwt.test.ts Loading commit data...
jwt.ts Loading commit data...
library.ts Loading commit data...
music.ts Loading commit data...
radio.ts Loading commit data...
remix.ts Loading commit data...
roomSocket.ts Loading commit data...
social.ts Loading commit data...
soundmarks.ts Loading commit data...
stream.ts Loading commit data...