diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx
index a0f2979..dd18a76 100644
--- a/components/details/details-content.tsx
+++ b/components/details/details-content.tsx
@@ -305,13 +305,13 @@ export default function DetailContent() {
close();
}
- if (!articleDetail?.files || articleDetail.files.length === 0) {
- return (
-
-
Gambar tidak tersedia
-
- );
- }
+ // if (!articleDetail?.files || articleDetail.files.length === 0) {
+ // return (
+ //
+ //
Gambar tidak tersedia
+ //
+ // );
+ // }
return (
<>
@@ -364,38 +364,50 @@ export default function DetailContent() {
{/* Gambar utama */}
-
-
-
-
- {/* Thumbnail */}
-
- {articleDetail.files.map((file: any, index: number) => (
-
+
+ {/* Thumbnail */}
+
+ {articleDetail.files.map((file: any, index: number) => (
+
+ ))}
+
+ >
+ ) : (
+ // Jika file kosong/null tapi tetap render data lainnya
+
+
Gambar tidak tersedia
+
+ )}
{/* Slug */}