BFLOWS dbed5963b2 fix(ar1): Ar1Wizard crash su activeQuadro undefined (7 guard)
Bug: TypeError 'Cannot read properties of undefined (reading id)' su Ar1Wizard.js:358
al click Avanti. Causa: activeIndex poteva uscire fuori range quadri.length
(es. dopo re-render con schema_snapshot diverso, o race tra saveQuadro e
setForm+setActiveIndex). Gli onClick/onBlur accedevano a activeQuadro.id
senza controllo null.

Fix:
1. clamp safeIndex = Math.max(0, Math.min(activeIndex, quadri.length - 1))
2. activeQuadro = quadri[safeIndex] (invece di activeIndex diretto)
3. isLastStep usa safeIndex
4. Steps.activeIndex usa safeIndex; onSelect clampa e.index
5. Bottone Indietro: guard 'if (!isReadonly && activeQuadro)' + Math.max(0,...)
6. Bottone Avanti: guard + Math.min(quadri.length-1,...)
7. Card onBlur: guard su activeQuadro
8. submitFinale: return se !activeQuadro, usa activeQuadro invece di quadri[activeIndex]
9. early return se quadri.length === 0 (template senza quadri editabili)

Parse check OK. Webpack compiled 1 warning (vecchio, non nostro).
2026-04-23 11:11:01 +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%