Dear Retool Support Team,
I've encountered what appears to be a bug in the New Table component when simultaneously using AddRow and Update Row functionalities. Here's a detailed description of the issue:
When using both AddRow and Update Row in a New Table component, we can utilize two Save Event Handlers through the Table's Save Event Handlers: Save(Insert) and Save(Update). However, an error occurs during the initialization process when using the 'Clear changeset' or 'Cancel' button.
Specifically, if we use only the Update functionality and then attempt to Clear changeset, we encounter a "Table.insert_table.changeset update" error.
Steps to Reproduce:
- Set up a New Table component with both AddRow and Update Row functionalities.
- Configure Save Event Handlers for both Save(Insert) and Save(Update).
- Perform only an Update operation.
- Attempt to use the 'Clear changeset' or 'Cancel' button.
Expected Behavior:
The changeset should clear without any errors, regardless of which operations were performed.
Actual Behavior:
A "Table.insert_table.changeset update" error occurs when clearing the changeset after only using the Update functionality.
This behavior seems inconsistent and appears to be a bug in the system. Could you please investigate this issue and provide guidance on how to properly handle this scenario or confirm if this is indeed a bug that needs to be addressed?
Thank you for your attention to this matter. I look forward to your response and any potential solutions or workarounds.
Best regards,
----Error Message------
Error: Cannot read properties of undefined (reading 'parm_key')
from insert_cmd_dtl.changeset update (insert_cmd_dtl)
from table2.newRows Update(table2)
from user interaciton