diff --git a/components/form/article/edit-article-form.tsx b/components/form/article/edit-article-form.tsx index 0c0ab7a..99124eb 100644 --- a/components/form/article/edit-article-form.tsx +++ b/components/form/article/edit-article-form.tsx @@ -623,9 +623,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) { alt="main" width={720} height={480} - src={ - detailfiles[mainImage]?.file_url || "/default-avatar.png" - } + src={detailfiles[mainImage]?.fileUrl || "/default-avatar.png"} className="w-[75%] mx-auto" /> @@ -640,7 +638,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) { width={480} height={360} alt={`image-${index}`} - src={file.file_url || "/default-avatar.png"} + src={file.fileUrl || "/default-avatar.png"} className="h-[100px] object-cover w-[150px]" /> @@ -663,7 +661,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) { width={480} height={360} alt={`image-${index}`} - src={file?.file_url || "/default-avatar.png"} + src={file?.fileUrl || "/default-avatar.png"} className="h-[100px] object-cover w-[150px]" />