refactor: error handling 소스 코드 추가
아직 미완성
This commit is contained in:
parent
55068138ba
commit
7460409802
@ -19,9 +19,9 @@ export default function RoofSelect() {
|
||||
|
||||
useEffect(() => {
|
||||
get({ url: '/api/roof-material/roof-material-infos' }).then((res) => {
|
||||
if (res.length === 0) {
|
||||
return
|
||||
}
|
||||
//TODO: error handling
|
||||
if (!res) return
|
||||
|
||||
setRoofMaterials(res)
|
||||
})
|
||||
}, [])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user