diff --git a/src/pages/portfolio/edit/PortfolioEditPage.tsx b/src/pages/portfolio/edit/PortfolioEditPage.tsx index c0b7e690..0978eac1 100644 --- a/src/pages/portfolio/edit/PortfolioEditPage.tsx +++ b/src/pages/portfolio/edit/PortfolioEditPage.tsx @@ -98,11 +98,10 @@ const PortfolioEditPage = () => { const [isSubmitted, setIsSubmitted] = useState(false); const uploadImageList = useRecoilValue(uploadImageListState); - const { - data: imageResponse, - refetch: readImageListPresignedUrl, - isSuccess: isSuccessReadUrl, - } = useReadImageListPresignedUrl(uploadImageList[0]?.fileName as string, portfolioId); + const { data: imageResponse, refetch: readImageListPresignedUrl } = useReadImageListPresignedUrl( + uploadImageList[0]?.fileName as string, + portfolioId + ); const uploadImageFileInSuccess = () => { if (!isSubmitted && imageResponse) { @@ -156,7 +155,7 @@ const PortfolioEditPage = () => { }); }); } - }, [isSuccessReadUrl]); + }, [imageResponse]); const submitHandler: SubmitHandler = () => { readImageListPresignedUrl(); // presignedUrl 발급