diff --git a/plugins/techdocs/src/home/components/Grids/InfoCardGrid.tsx b/plugins/techdocs/src/home/components/Grids/InfoCardGrid.tsx index 31435debf7..cba00076b1 100644 --- a/plugins/techdocs/src/home/components/Grids/InfoCardGrid.tsx +++ b/plugins/techdocs/src/home/components/Grids/InfoCardGrid.tsx @@ -72,28 +72,26 @@ export const InfoCardGrid = (props: InfoCardGridProps) => { }); }; - if (!entities) return null; + if (!entities || !entities?.length) return null; return ( - {!entities?.length - ? null - : entities.map(entity => ( - - {entity?.metadata?.description} - - - {linkContent || 'Read Docs'} - - - ))} + {entities.map(entity => ( + + {entity?.metadata?.description} + + + {linkContent || 'Read Docs'} + + + ))} ); }; diff --git a/plugins/techdocs/src/home/components/TechDocsCustomHome.tsx b/plugins/techdocs/src/home/components/TechDocsCustomHome.tsx index 3c213d827c..2dcf6aae80 100644 --- a/plugins/techdocs/src/home/components/TechDocsCustomHome.tsx +++ b/plugins/techdocs/src/home/components/TechDocsCustomHome.tsx @@ -148,9 +148,9 @@ export const CustomDocsPanel = ({ return ( <> - {config.panelProps?.showHeader !== false && ( + {!!config.panelProps?.showHeader && ( - {index === 0 && config.panelProps?.showSupport !== false && ( + {index === 0 && !!config.panelProps?.showSupport && ( Discover documentation in your ecosystem.