<commit_before>import { actionTypes } from '~/redux/constants'

export default (state =  {}, action) => {

  switch (action.type) {
    case actionTypes.CURRENT_PAGE_LOAD_EPISODE:
      return {
        episode: action.payload,
        mediaRef: null,
        nowPlayingItem: null,

        podcast: null
      }
    case actionTypes.CURRENT_PAGE_LOAD_LIST_ITEMS:
      return {
        ...state,
        listItems: action.payload,
      }
    case actionTypes.CURRENT_PAGE_LOAD_MEDIA_REF:
      return {
        episode: null,
        mediaRef: action.payload,
        nowPlayingItem: null,
        podcast: null
      }
    case actionTypes.CURRENT_PAGE_LOAD_NOW_PLAYING_ITEM:
      return {
        episode: null,
        mediaRef: null,
        nowPlayingItem: action.payload,
        podcast: null
      }
    case actionTypes.CURRENT_PAGE_LOAD_PODCAST:
      return {
        episode: null,
        mediaRef: null,
        nowPlayingItem: null,
        podcast: action.payload
      }
    default:
      return state
  }

}<commit_msg>Update src/redux/reducers/currentPage.ts<commit_after>import { actionTypes } from '~/redux/constants'

export default (state =  {}, action) => {

  switch (action.type) {
    case actionTypes.CURRENT_PAGE_LOAD_EPISODE:
      return {
        ...state,
        episode: action.payload,
        mediaRef: null,
        nowPlayingItem: null,
        podcast: null
      }
    case actionTypes.CURRENT_PAGE_LOAD_LIST_ITEMS:
      return {
        ...state,
        listItems: action.payload,
      }
    case actionTypes.CURRENT_PAGE_LOAD_MEDIA_REF:
      return {
        ...state,
        episode: null,
        mediaRef: action.payload,
        nowPlayingItem: null,
        podcast: null
      }
    case actionTypes.CURRENT_PAGE_LOAD_NOW_PLAYING_ITEM:
      return {
        ...state,
        episode: null,
        mediaRef: null,
        nowPlayingItem: action.payload,
        podcast: null
      }
    case actionTypes.CURRENT_PAGE_LOAD_PODCAST:
      return {
        ...state,
        episode: null,
        mediaRef: null,
        nowPlayingItem: null,
        podcast: action.payload
      }
    default:
      return state
  }

}
{'fraction_non_alphanumeric': 0.0871559633027523, 'fraction_numerical': 0.0, 'mean_word_length': 1.975443383356071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7568724', 'n_tokens_mistral': 655, 'n_tokens_neox': 655, 'n_words': 131}