Join GitHub today
fix: childtable error in editable report builder #7354
So, I tested and put 'console.logs' everywhere untill I found the problem: the structure of updated_doc does not match the structure of _data so they never add the child table's fields values.
This fixes it.
Hey @Don-Leopardo I reviewed the PR, however in my local testing, I didn't see it fixing the issue completely
As you can see the correct data reflects in either case, however only after refresh. After the patch, some fields do work correctly, some don't. Please let me know if there's any confusion
@scmmishra I've testes this in a local instance and in a production instance and it's working correctly. We can try this if you want:
console.log(JSON.stringify(this.data,null, 4), "this.data"); console.log(JSON.stringify(updated_doc,null, 4), "updated_doc"); const _data = this.data.find(d => d.name === updated_doc.name); console.log(JSON.stringify(_data,null, 4), "_data");
And show to me the console result after it fails. With that information maybe I can solve the problem.