diff --git a/src/components/sections/TemplateGallery.tsx b/src/components/sections/TemplateGallery.tsx index 48eafcb..1b921ed 100644 --- a/src/components/sections/TemplateGallery.tsx +++ b/src/components/sections/TemplateGallery.tsx @@ -15,7 +15,6 @@ import { SectionReveal } from "./SectionReveal"; import { TemplateCard } from "./TemplateCard"; import { FILTER_TABS, - TEMPLATES, filterTemplates, getTemplateImageSrc, type FilterTab, @@ -61,11 +60,8 @@ export function TemplateGallery({ className, adminItems }: TemplateGalleryProps) const [activeTab, setActiveTab] = useState("All"); const [usingTemplateId, setUsingTemplateId] = useState(null); - // Use admin items when the service returned data; fall back to hardcoded list - const allItems: TemplateItem[] = - adminItems && adminItems.length > 0 - ? adminItems.map(adminProjectToTemplateItem) - : TEMPLATES; + // Real admin templates only — no hardcoded demo fallback. + const allItems: TemplateItem[] = (adminItems ?? []).map(adminProjectToTemplateItem); const filtered = filterTemplates(activeTab, allItems); diff --git a/src/components/templates/video/VideoTemplatesPageContent.tsx b/src/components/templates/video/VideoTemplatesPageContent.tsx index d43de54..d61dd3c 100644 --- a/src/components/templates/video/VideoTemplatesPageContent.tsx +++ b/src/components/templates/video/VideoTemplatesPageContent.tsx @@ -22,7 +22,6 @@ import { filterVideoCatalog, toProjectTemplate, VIDEO_SIDEBAR_CATEGORIES, - VIDEO_TEMPLATES_CATALOG, type AspectRatioFilter, type VideoCatalogTemplate, type VideoSidebarCategoryId, @@ -64,11 +63,8 @@ export function VideoTemplatesPageContent({ } }, [categoryParam]); - // Use admin-sourced templates when available, fall back to the demo catalog - const catalog = - initialCatalog && initialCatalog.length > 0 - ? initialCatalog - : VIDEO_TEMPLATES_CATALOG; + // Real admin-sourced templates only — no hardcoded demo fallback. + const catalog = initialCatalog ?? []; const filtered = useMemo( () =>