Skip to content

Commit

Permalink
fix: 삭제 버튼 클릭시 값 undefined로 리셋
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Oct 11, 2024
1 parent ee974d5 commit 52df710
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ const ShowCastInfoFormDialogContent = ({ onDelete, prevShowCastInfo, onSave }: P
<Styled.Username>{field.userNickname}</Styled.Username>
<Styled.RemoveButton
onClick={() => {
update(index, { roleName: field.roleName });
update(index, {
userImgPath: undefined,
userNickname: undefined,
userCode: undefined,
roleName: field.roleName,
});
}}
>
<ClearIcon />
Expand Down

0 comments on commit 52df710

Please sign in to comment.