codestates / codestates/art-ground

[Dev Log] 20210922 / 유다희

Open
#287 0 comments 0 reactions 1 assignee Claimed by @tkdkagody View on GitHub
Dev Log Error Handling Log
Dominant language
JavaScript
Stars
7
Forks
9
PR merge metrics
No merged PRs in 30d

Description

브랜치: feature/kakao

## **오늘 TODO**

- [x] 카카오 오아쓰(14시 순려님)
- [ ] modify페이지 패스워드 눈이미지 ? type="password"로 수정
- [ ] modify페이지에서 모달수정 클릭시 cyrypto.js 에러 뜸 ㅜㅜ
- [ ] 로컬에서 성공한 회원가입,로그인,로그아웃 배포환경에서 가능하도록 체킹
- [ ] 마이페이지관련 api통신 플로우 체킹
- [ ] 마이페이지 api통신 시도 (배포서버 로그인성공하면 시도)
- [x] admin 렌더링 에러 수정
- [x] adminex 더미데이터 받아보기
- [x] about 페이지 첫 섹션 슬라이드 구현하기.

기본형식만 구현. 다른형태 시도하다가 실패했다 ㅠㅠ 시간날때 다시 도전

- [x] data maping 안되는 문제 해결하기
- [x] 파이프라인 체킹 ! 배포

## **ERROR노트**

### 1. 슬라이드 자동페이지 전환 마우스 오버시 clearTimeout

왜 작동이 안먹는지 모르겠다. 내일 다시 한번 시도해봐야지 (aboutSlider컴포)

### 2. maping 렌더링 안되는 문제 (adminex)

![Screenshot from 2021-09-23 02-28-18.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4b0a5401-36b7-4d34-beae-7cc15efca3c1/Screenshot_from_2021-09-23_02-28-18.png)

```jsx
Type error: cannot read property 'map' of null
```

배열타입의 data를 가져와서 임의로 maping 해보았는데 위와 같은 타입에러가 떴다.

어제처럼 렌더링 시간때문인가 싶어 setTimeout걸었는데도 불구하고 동일한 에러 뜸.

```jsx
const [exData, setExData] = useState(null);
```

이렇게 상태값을 useState로 초기값 null로 두고,

아래 부분에서 setExdata를 했을 경우 console.log를 찍어보면 2개의 값이 찍힌다. 또 null이 문제였음

초기값 지정은 필수 이기때문에 렌더링 부분에 조건문으로 값이 있는 경우에만 maping한다고 코드를 작성하면 map이 없다고 뜨는것이 사라짐.

[https://www.codeproject.com/Questions/5286026/Typeerror-cannot-read-property-map-of-null-react-J](https://www.codeproject.com/Questions/5286026/Typeerror-cannot-read-property-map-of-null-react-J)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.