Please see the attached example. You can download the json file and then use the "Import app from JSON/ZIP" to use this working example. I would have written an explanation, but the solution is a bit complicated. I had to write 2 javascript queries and create 2 temp state variables. I also added a function to the toolbar (+) and a save action. I hope this helps!
Continuing the discussion from Has add row disappeared in new table component? :
insertNewRowsInTableComponent.json (19.1 KB)