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