BFLOWS cad839aea0 fix(ar1-admin): crash su error Pydantic (detail array) -> formatErrorDetail helper
Bug: click 'Crea versione' con version vuota o invalida -> pagina bianca + 'error'.
Causa: il BE restituisce 422 con detail come ARRAY Pydantic [{loc, msg, type}].
Il codice faceva detail: err?.detail || 'fallback' -> array passato a PrimeReact Toast
-> React render 'Objects are not valid as a React child' -> crash unhandled.

Fix: helper formatErrorDetail(detail, fallback) che normalizza:
  - string -> ritorna direttamente
  - array Pydantic -> 'loc.loc: msg; loc.loc: msg' (filtrato 'body')
  - object -> JSON.stringify
  - altro -> String(x)

Applicato con regex a tutti i pattern 'err?.detail || "fallback"' nel file (tutti
i toast show di errore nei vari handler: saveLayout, saveNewVersion, savePolicy,
savePecRule, deletePecRule, saveEmail, runPreview, runBulk, loadXxx).
2026-04-23 15:24:05 +02:00
2024-10-31 10:08:59 +01:00
2024-08-09 10:41:54 +02:00
2026-01-21 11:01:11 +01:00
2026-03-27 12:14:28 +01:00
2026-03-27 12:14:28 +01:00
2024-08-09 08:51:20 +02:00
2026-03-27 12:48:05 +01:00
:
2024-12-23 11:37:10 +01:00

GEPAFIN-FE

Gepafin Front End

Commands

npm run start - start development server npm run build:dev - make build based on 'dev' env variables npm run build:prod - make build based on 'prod' env variables

HUB IDs

p4lk3bcx1RStqTaIVVbXs - gepafin t7jh5wfg9QXylNaTZkPoE - sviluppumbria

Description
BFLOWS — bflows-bandi-fe
Readme 3.7 MiB
Languages
JavaScript 85.9%
SCSS 14.1%