I have a perspective table component that shows this message when i try to remove the last row from the dataset:
This is the code from my delete row button.
data = self.getSibling("Table").props.data
row = self.getSibling("Table").props.selection.selectedRow
self.getSibling("Table").props.selection.selectedColumn = None
self.getSibling("Table").props.selection.selectedRow = None
data = system.dataset.deleteRow(data, row)
self.getSibling("Table").props.data = data
I am hoping someone can point me in the right direction, i've tried everything i can think of and nothing has resolved the issue. Thank you in advance.