From a71d41974346e55c56da87fbc9a40b94820b2f16 Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Wed, 22 Nov 2023 16:03:58 -0500 Subject: [PATCH] :bug: Don't render archetype label if not reviewed (#1567) https://issues.redhat.com/browse/MTA-1719 Signed-off-by: ibolton336 --- .../application-detail-drawer/reviewed-archetype-item.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/app/pages/applications/components/application-detail-drawer/reviewed-archetype-item.tsx b/client/src/app/pages/applications/components/application-detail-drawer/reviewed-archetype-item.tsx index 84f5a07fdb..912d8588dc 100644 --- a/client/src/app/pages/applications/components/application-detail-drawer/reviewed-archetype-item.tsx +++ b/client/src/app/pages/applications/components/application-detail-drawer/reviewed-archetype-item.tsx @@ -5,12 +5,11 @@ import React from "react"; export const ReviewedArchetypeItem = ({ id }: { id: number }) => { const { archetype } = useFetchArchetypeById(id); - if (!archetype) return null; + if (!archetype?.review) return null; return ( ); };