diff --git a/content/webapp/pages/concepts/[conceptId].tsx b/content/webapp/pages/concepts/[conceptId].tsx index 9650a92c71..9355e81a59 100644 --- a/content/webapp/pages/concepts/[conceptId].tsx +++ b/content/webapp/pages/concepts/[conceptId].tsx @@ -149,7 +149,7 @@ type ImagesTabPanelProps = { id: string; link: LinkProps; results: ReturnedResults; - totalResults: number; + totalResults: number | undefined; }; const ImagesTabPanel: FunctionComponent = ({ id, @@ -161,7 +161,7 @@ const ImagesTabPanel: FunctionComponent = ({
- {totalResults > 0 && ( + {totalResults && ( ; - totalResults: number; + totalResults: number | undefined; }; const WorksTabPanel: FunctionComponent = ({ id, @@ -190,7 +190,7 @@ const WorksTabPanel: FunctionComponent = ({
- {totalResults > 0 && ( + {totalResults && ( = { id: string; link: LinkProps; results: ReturnedResults; - totalResults: number; + totalResults: number | undefined; }; }; type PageSectionDefinitionProps = { tabId: string; resultsGroup: ReturnedResults | undefined; tabLabelText: string; - totalResults: number; + totalResults: number | undefined; link: LinkProps; }; @@ -251,7 +251,7 @@ type SectionData = { label: string; works: ReturnedResults | undefined; images: ReturnedResults | undefined; - totalResults: { works: number; images: number }; + totalResults: { works: number | undefined; images: number | undefined }; }; type SectionsData = {