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 5f056de commit 4990b74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/admin/resource/ResourceManageAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const AbExitBtn = styled(ExitBtn)`
const PreviewImage = styled.img`
width: 320px;
height: 180px;
object-fit: contain;
`

function ResourceManageAdd(props) {
Expand Down Expand Up @@ -407,7 +408,7 @@ function ResourceManageAdd(props) {
<TitleLabel>첨부사진</TitleLabel>
<ImageInfoContainer>
<PreviewImage
src={imageSrc ? imageSrc : EmptyImg}
src={imageUrl ? imageUrl : imageSrc ? imageSrc : EmptyImg}
alt="첨부사진"
/>
{imageFile !== null && <AbExitBtn onClick={deleteImageFile}>×</AbExitBtn>}
Expand Down

0 comments on commit 4990b74

Please sign in to comment.