return {
        ...state,
        code: action.payload.code,
        cursor: action.payload.cursor,
        history: {