jejomath / foam

Foam low-code for coders app development framework
MIT License
19 stars 1 forks source link

New objects are not created or edited via UI #15

Open VasilisaPrikhodko opened 1 year ago

VasilisaPrikhodko commented 1 year ago

Hello, jejomath!

I found that I cannot create new objects via UI. For example: I submit Create New Assay or New Experiment or New Plate and I get an error: react-dom.development.js:4290 Uncaught TypeError: Cannot read properties of undefined (reading 'record') ... perhaps there are not enough fields on the UI for the success. The admin panel contains more fields and object creations are performed.

Regarding editing through the UI, Manage Cell Line>Find Cell Line>Double click on any line>Edit an error occurs: 404 Not Found due to undefined in request. For example: http://localhost:8000/api/cell_line/undefined/

There was also a case when object was not opened for viewing and editing: Review Plates>Find Plate> Open previously created plate (e.g. http://localhost:3000/view_plate?id=1) an error occurred: Components.js:317 Uncaught TypeError: Cannot read properties of undefined (reading 'display')

Thank you!

Regards, Vasilisa

jejomath commented 1 year ago

Thanks for catching this. It was caused by a recent change in how the save function is passed to objects, that wasn't updated in the page configs. This should be fixed with the merge of the bug_fixes branch.