Delete row in datagrid causes error
daspilker opened this issue · comments
We are currently using FormIO 4.18.0.
When adding multiple rows to a data grid and deleting any but the last row, the following error is logged to the console and the row is not deleted.
core.mjs:10614 ERROR TypeError: Cannot read properties of undefined (reading 'getComponentPath')
at DataGrid.js:397:54
at Array.forEach (<anonymous>)
at DataGridComponent.updateComponentsRowIndex (DataGrid.js:389:20)
at DataGrid.js:402:18
at Array.forEach (<anonymous>)
at DataGridComponent.updateRowsComponents (DataGrid.js:401:35)
at DataGridComponent.removeRow (DataGrid.js:410:14)
at _ZoneDelegate.invokeTask (zone.js:402:31)
at core.mjs:10757:55
at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:10757:36)
This has been resolved by updating to @formio/angular v7.0.0 and formiojs 4.18.1.