How do I update the data in an object that is in an array?

None of these examples work.