diff --git a/src/features/content/renderers/details/categoryParts.tsx b/src/features/content/renderers/details/categoryParts.tsx index a66249b..863de06 100644 --- a/src/features/content/renderers/details/categoryParts.tsx +++ b/src/features/content/renderers/details/categoryParts.tsx @@ -8,7 +8,6 @@ import { ObjectSections } from "../shared/ObjectSections"; import { RecordCards } from "../shared/RecordCards"; import { RecordTable } from "../shared/RecordTable"; import { SectionCard } from "../shared/SectionCard"; -import { useRelationalContentMedia } from "../../media/ContentMediaContext"; export const PointCodes = ({ data }: { data: Record }) => ( @@ -38,21 +37,7 @@ const extractCategoryImages = (data: Record): Record }) => { const directImages = extractCategoryImages(data); - const relationalMedia = useRelationalContentMedia(); - - // If direct images are explicitly defined in category data, display them - if (directImages.length > 0) { - return ; - } - - // If direct media was assigned directly to this category (e.g. primary image in CMS) - const hasDirectMedia = relationalMedia.some((m) => m.media_role === "primary"); - if (hasDirectMedia) { - return ; - } - - // Do not show inherited media from referenced points/meridians for categories without images - return null; + return ; }; export const ObjectCard = ({ title, value }: { title: string; value: unknown }) => {