dbed5963b2e0839306d9e00c511403d129601987
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).
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
Languages
JavaScript
85.9%
SCSS
14.1%