table.newRows not clearing after running an insert operation

On adding a new row, I am leveraging the table.newRows array to Insert a record.

That is running fine. However, after the insert runs and I run my getTable query, the newRows data is persisting and is showing as another new line in the table.

I have tried running a script to clear/reset/null out the table or the newRows field, but it is not working.

After hitting 'Save'

newRows data persists:

Solved
On my save handler I had 2 events. One for Inserts, One for Updates. I had to set the Update event to disabled if there are no ChangeSetArray records
image

1 Like