I think `ProjectViewModel`'s setState replaces the `DataSet` state with the object from `currentProject._dataSets`. Your way creates a new DataSet instead of grabbing the existing one from state, which I don't think is right.