onEditCellCommit issue

I have a table which is being populated from a dataset tag on a StartUpScript.
When i edit a cell it reverts to the initial value.
I get this error in the logs.

Post your script. It doesn’t like what you have on line 9.

Found the solution

valueToSet = event.value 
newData = system.dataset.setValue(self.props.data, event.row, event.column, event.value)
self.props.data = newData