Skip to content

Commit

Permalink
[PDW-94] fix: 이미지 없을 때 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
psyeon1120 committed Nov 24, 2023
1 parent 9041256 commit 5f056de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/admin/resource/ResourceManageAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function ResourceManageAdd(props) {
manufacturer: manufacturer,
location: place,
name: name,
imgKey: `resource/${imageUrl.imageKey}`,
imgKey: imageFile === null ? null : `resource/${imageUrl.imageKey}`,
},
{
headers: {
Expand All @@ -275,7 +275,7 @@ function ResourceManageAdd(props) {
})
.then((Response) => {
alert("장비 등록이 완료되었습니다.");
// window.location.href = `/admin/resources`
window.location.href = `/admin/resources`
})
.catch((error) => {
basicError(error)
Expand Down

0 comments on commit 5f056de

Please sign in to comment.