I'm am attempting to assign a new value based on a passed in index variable and it isn't updating in my state. Its intended to toggle an object array which will allow for conditional rendering but as I do a console log of my state it is not changing.

```
this.state = {
      value: 0,
      metadata: MetaDataData,
      togglePanel: false,
      activeItem: {0: false, 1: false, 2: false}
    };

toggleActiveItem = (activeIndex) => {
    const index = activeIndex
    this.setState((prevState) => {
      return {...prevState.activeItem, [index]: !prevState.activeItem[index]}
    })
  }

```

For instance when this is called with a passed in index of zero I would expect that the 0th instance to be changed from false to true.