How to reset the value of an object field in an array - TanStack