From ba97927b31524e3f4e2c97c42b6d13919b9a4afa Mon Sep 17 00:00:00 2001 From: Desktop Date: Wed, 12 Nov 2025 11:03:28 +0500 Subject: [PATCH] Update ContentImageCell.tsx --- .../components/common/ContentImageCell.tsx | 52 +++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/common/ContentImageCell.tsx b/frontend/src/components/common/ContentImageCell.tsx index 07e55967..7a5ffaff 100644 --- a/frontend/src/components/common/ContentImageCell.tsx +++ b/frontend/src/components/common/ContentImageCell.tsx @@ -139,11 +139,57 @@ export default function ContentImageCell({ image, maxPromptLength = 100 }: Conte View Original )} + {/* Display database field values */} +
+
+ class Images(SiteSectorBaseModel): +
+
+
+ image_url + = + + {image.image_url || null} + +
+
+ image_path + = + + {image.image_path || null} + +
+
+
) : ( -
-

No image available

-
+ <> +
+

No image available

+
+ {/* Display database field values even when no image available */} +
+
+ class Images(SiteSectorBaseModel): +
+
+
+ image_url + = + + {image.image_url || null} + +
+
+ image_path + = + + {image.image_path || null} + +
+
+
+ )} )}