codestates / codestates/Lumiere
[에러 핸들링] TypeScript Object is possibly 'null'
Open
Completed
Error
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
객체가 비어있는데 여기에 값을 넣어야할 때가 있다! (나같은 경우는 S3파일을 input에 넣어주기 위해선 초기값이 빈 객체인 값이 필요했다.)

이렇게 널가드를 해주면 된다!
혹은 해당핸들러/함수 최 상단에
```tsx
if (!e.target.files) return; 을 적어주면된다.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.