Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ←→1 of 4 errors on the page
  2. TypeError: Cannot read property 'name' of undefined
  3. Cell
  4. src/components/Visits/Components/TableResponsive/Components/Cell.js:35
  5.   32 | const Cell = ({ column, columnIndex, row, screenWidth }) => {
  6.   33 |   const [isVisibleVisitsPanel, setIsVisibleVisitsPanel] = useState(false);
  7.   34 |
  8. > 35 |   const cellData = column.isText ? row[column.key].name : row[column.label];
  9.   36 |   const getCountForStatusAndMainCategory = (visitStatus, main) => {
  10.   37 |     if (column.isText || !cellData || !cellData.visits) {
  11.   38 |       return 0;
  12. View compiled
  13. 19 stack frames were collapsed.
  14. (anonymous function)
  15. src/store/middlewares/themes.middleware.js:34
  16.   31 |     Hook into theme change to set a inject a selected theme
  17.   32 | */
  18.   33 | const themes = store => next => action => {
  19. > 34 |   const result = next(action);
  20.   35 |   if (action.type === CHANGE_THEME) {
  21.   36 |     updateTheme(store.getState());
  22.   37 |   }
  23. View compiled
  24. (anonymous function)
  25. src/store/middlewares/settings.middleware.js:37
  26.   34 |     Hook into setting changes in order to change layout.
  27.   35 | */
  28.   36 | const settings = store => next => action => {
  29. > 37 |   const result = next(action);
  30.   38 |   if (action.type === TOGGLE_SETTING || action.type === CHANGE_SETTING) {
  31.   39 |     updateClasses(store.getState());
  32.   40 |   }
  33. View compiled
  34. setApiResponse
  35. src/components/Visits/Visits.js:70
  36.   67 |     dispatch({ type: common.SET_HEADER_SEARCH_CALLBACK, payload }),
  37.   68 |   setSelectedContract: payload =>
  38.   69 |     dispatch({ type: common.SET_SELECTED_CONTRACT, payload }),
  39. > 70 |   setApiResponse: payload =>
  40.   71 |     dispatch({ type: visits.SET_API_RESPONSE, payload })
  41.   72 | });
  42.   73 |
  43. View compiled
  44. _callee2$
  45. src/components/Visits/Visits.js:45
  46.   42 | const { id, start_date, end_date } = selectedContractPeriod;
  47.   43 | const fetchData = async () => {
  48.   44 |   const response = await getVisitsResponseApi(id);
  49. > 45 |   setApiResponse(response);
  50.      | ^  46 | };
  51.   47 | fetchData();
  52.   48 | // eslint-disable-next-line react-hooks/exhaustive-deps
  53. View compiled
  54. 5 stack frames were collapsed.
  55. This screen is visible only in development. It will not appear if the app crashes in production.
  56. Open your browser’s developer console to further inspect this error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement