In the upcoming lecture, we will finish writing our bundlesReducer. Similar to an issue we encountered in a previous lecture, we will need to update our Immer produce method to prevent an error.

Add the initialState as the second argument to the produce function like so:

const reducer = produce(
  (state: BundlesState = initialState, action: Action): BundlesState => {
    ...   
    }
  },
  initialState
);