I am trying to delete a row from my ag-Grid like so:
let alertRow : RowNode = this.gridApi.getRowNode(rowIndex);
console.log(alertRow);
this.gridApi.updateRowData({remove: [alertRow]});
It gives me this error:
ag-Grid: could not find data item as object was not found
I can see in console the RowNode is the correct node and exists. I am also able to use updateRowData() to add new rows in fine but trying to remove gives this error.
I am using ag-Grid in Angular 6 component.
Why is removing not working?