Only reset state.date when the selected date is changed