ExternalError: TypeError: Cannot read property 'reduce' of undefined

Hi,

I’m working on an app that allows users to add items to a row using the multirow column function and have it working to a certain extent but I’m having 2 issues:

  1. Whenever I add or remove a multirow column item I get the error “ExternalError: TypeError: Cannot read property ‘reduce’ of undefined”. Does anybody know how I can fix this?
  2. Loading the datagrids in the app can take upwards of 8 seconds despite only loading 5 rows at a time. Is there a way to reduce this time?

Link to the app is below. Any help is much appreciated.
https://anvil.works/build#clone:A47OFUH6744MFGJM=HX4X2MSC2X3KPMI22D6NTWUN

If the components are connected to live DataTable rows, this will make many round trips to the server and thus be slow. In case it helps, here are several posts that have suggestions for improving performance:

1 Like

Thanks @alcampopiano, I’ll have a look. Does anyone have an idea what the TypeError is being caused by?