<commit_before>import { APOLLO_MUTATION_RESULT } from '../../app/thirdPartyActions';
import {
  CHANGE_SHOWN_PROTECTED_LIST,
  OPEN_EDIT_PROTECTED_NAME_MEETING_DIALOG,
  CLOSE_EDIT_PROTECTED_NAME_MEETING_DIALOG,
  OPEN_EDIT_PROTECTED_NAME_CALL_DIALOG,
  CLOSE_EDIT_PROTECTED_NAME_CALL_DIALOG,
} from './nameListActions';

const initialState = {
  protectedListToShow: 'protected',
  editProtectedNameMeetingDialogOpen: false,
  editProtectedNameCallDialogOpen: false,
};
export default (state = initialState, action) => {
  switch (action.type) {
    case CHANGE_SHOWN_PROTECTED_LIST:
      return {
        ...state,
        protectedListToShow: action.listToShow,
      };
    case APOLLO_MUTATION_RESULT: {
      switch (action.operationName) {
        case 'ProtectName':
          return {
            ...state,
            protectedListToShow: initialState.protectedListToShow,
            actionInProgress: initialState.actionInProgress,
          };
        case 'MetWithProtected':
          return {
            ...state,
            protectedListToShow: 'metWithProtected',
          };
        default:
          return state;
      }
    }
    default:
      return state;
  }
};
<commit_msg>do not switch to metWithProtected list after action<commit_after>import { APOLLO_MUTATION_RESULT } from '../../app/thirdPartyActions';
import {
  CHANGE_SHOWN_PROTECTED_LIST,
  OPEN_EDIT_PROTECTED_NAME_MEETING_DIALOG,
  CLOSE_EDIT_PROTECTED_NAME_MEETING_DIALOG,
  OPEN_EDIT_PROTECTED_NAME_CALL_DIALOG,
  CLOSE_EDIT_PROTECTED_NAME_CALL_DIALOG,
} from './nameListActions';

const initialState = {
  protectedListToShow: 'protected',
  editProtectedNameMeetingDialogOpen: false,
  editProtectedNameCallDialogOpen: false,
};
export default (state = initialState, action) => {
  switch (action.type) {
    case CHANGE_SHOWN_PROTECTED_LIST:
      return {
        ...state,
        protectedListToShow: action.listToShow,
      };
    default:
      return state;
  }
};

{'fraction_non_alphanumeric': 0.08730964467005076, 'fraction_numerical': 0.0, 'mean_word_length': 3.3223684210526314, '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': '4492478', 'n_tokens_mistral': 666, 'n_tokens_neox': 640, 'n_words': 100}