Good Morning -
I've got an app that is in production. This morning I got a notice from the team that they are getting an error, specific details below.
This app last had a change on September 23rd for some text formatting, and before that the last change was July 10. This is used daily and my point is the app has been rather robust though I know well how one API change can cause problems.
I'm wondering if something changed under the hood with Retool in the last handful of hours/days, that it may have changed how code/queries run. Perhaps a bold question on my part, I'm sure daily/hourly you are pushing new code, updates, fixes, etc.
I believe the team last used the app Tuesday morning (2025-09-30 EST) with no issue. Here Wednesday morning (2025-10-01 EST) we are getting this error.
Structure/Error
I've got a ListView. It contains checkboxes.
I've got a function CheckboxBehavior. The event handler on Checkbox runs this function.
The error I'm getting is that when a user clicks on a check box, the check is there briefly, then disappears and the error shown is: "checkboxBehavior Cannot read properties of undefined (reading 'map')" .
The function CheckboxBehavior runs when a click occurs on a checkbox.
The top of the js function CheckboxBehavior has the following lines:
let checkboxArray = listView_orders.data.map((_, index) => {
return listView_orders.instanceValues[index]?.checkbox ?? false; // Default to false if undefined
});
and according to the console log, it is that first line causing the problem. When I hover on the listview_orders.data I can see what I expect to be there, it isn't undefined.
I'm not seeing any changes in the structure of the function or elements in the diff checks of the version deployed in September or July. So, this leads me to wondering if something changed under the hood, and perhaps it is now that a weakness is shown in the code. I'm not sure yet how to fix or improve.