Cannot invoke an object which is possibly 'undefined' on row.delete()
New DiscussionHi,
Seeing this error on the row.delete() method:
” Cannot invoke an object which is possibly ‘undefined’ ”
The method is the following:
public removeRow(rowIndex: number) {
const row = this.hierarchicalGrid.getRowByIndex(rowIndex);
console.log(row);
row.delete();
}
It is the only error I´m getting in both the .ts and html components, any ideas on how to fix it?
Thanks,
Jose
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Dec 14, 2022 Last Post
3 years, 2 months ago