<commit_before>import * as actionTypes from '../constants/actionTypes'

export default function grid(state = { rows: 4, cols: 6, isFetchingGrid: [], singerLists: {} }, action) {
  switch (action.type) {
    case actionTypes.GRID_LOADED:
      return { ...state, rows: action.payload.grid.rows, cols: action.payload.grid.cols };
    case actionTypes.GRID_UPDATED:
      return { ...action.payload.grid };<commit_msg>Fix grid resizing bug<commit_after>import * as actionTypes from '../constants/actionTypes'

export default function grid(state = { rows: 4, cols: 6, isFetchingGrid: [], singerLists: {} }, action) {
  switch (action.type) {
    case actionTypes.GRID_LOADED:
      return { ...state, rows: action.payload.grid.rows, cols: action.payload.grid.cols };
    case actionTypes.GRID_UPDATED:
      return { ...state, ...action.payload.grid };
{'fraction_non_alphanumeric': 0.14622641509433962, 'fraction_numerical': 0.0047169811320754715, 'mean_word_length': 3.769662921348315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6233840', 'n_tokens_mistral': 268, 'n_tokens_neox': 263, 'n_words': 64}