Unable to update firebase properly with array

  • Goal: To update entries as an array instead of string

currently, i have a form that sends form.data to firebase, which stores partsFixed as an array.

when i wish to update my form entry, all works properly except when i try to update partsFixed, as a modification in parts leads to the whole data being treated like a string. this is what my update code looks like

{"recordBy": "{{ UpdateUserForm1.data.editRecordBy}}",
"partsFixed": "{{tranformPartsFixed.value}}",
"contractorName":"{{ UpdateUserForm1.data.contractorName2}}",
"defectsDetails": "{{ UpdateUserForm1.data.remarks2}}",
"correctiveAction":"{{ UpdateUserForm1.data.correctiveAction2}}",
"sparesRequired":"{{ UpdateUserForm1.data.sparesRequired2}}",
"completed":"{{ UpdateUserForm1.data.completed2}}",
"dateTimeComplete":"{{ UpdateUserForm1.data.dateTimeComplete2}}"
}

transformpartsFixed returns an array, but yet the object returned when updating somehow converts it back to a string

after updating
Screenshot 2024-07-03 at 9.08.57 AM

After creating form
Screenshot 2024-07-03 at 9.09.24 AM

this is my transformPartsFixed
const data= {{ UpdateUserForm1.data.partsFixed2 }}
const output= [data]

return output

Hi @Nicholas_Lee It looks like we have a bug report to better support firebase arrays. I'll follow up if I get any updates on it internally