#Trouble Updating Array Order with useField in Database

4 messages · Page 1 of 1 (latest)

plush veldtBOT
#

Hey everyone, I'm creating a custom component to create a sorted list.

The create already works, but the update of the array inside the useField doesn't seem to work.

I need to update the order inside the document, I'm using the useField with order path but the setValue after the creation (like edit operation) doesn't change anything in the db.

I don't know how payload determines if it needs to update, the length of the array keeps the same, I just change the order.

possible duplication
#1080817423311187988 message

the fields are set

cinder kelpBOT
#

Original message from @glass thunder - Moved from #general message

glass thunder
#

sorry @formal radish