From d5c1b10e617cb4e0f1223bb6b73d96009ddf6cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=98=88=EC=A7=84?= Date: Sat, 9 Nov 2024 23:41:26 +0900 Subject: [PATCH] fix: hide if cant edit avatar list --- src/shared/ui/AvatarList/AvatarList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/ui/AvatarList/AvatarList.tsx b/src/shared/ui/AvatarList/AvatarList.tsx index 84112a5..5886bc2 100644 --- a/src/shared/ui/AvatarList/AvatarList.tsx +++ b/src/shared/ui/AvatarList/AvatarList.tsx @@ -34,7 +34,9 @@ export const AvatarList = ({ imageDtoList = [], setFiles, onClickRemove, maxFile size={72} src={url} actionSlot={ - onClickRemove?.(url, isNaN(Number(imageId)) ? Number(imageId) : undefined)} /> + onClickRemove && ( + onClickRemove?.(url, isNaN(Number(imageId)) ? Number(imageId) : undefined)} /> + ) } /> ))}