From 61c756e5fa7eba315a5f591a566bdc9779ba1ec7 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Thu, 2 Nov 2023 14:49:16 -0400 Subject: [PATCH] Show the summary row when applicable Show the summary row when at least one company or group is selected. Closes #100 --- web/gui-v2/src/components/ListViewTable.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/gui-v2/src/components/ListViewTable.jsx b/web/gui-v2/src/components/ListViewTable.jsx index 3790ddc2..eec3e0df 100644 --- a/web/gui-v2/src/components/ListViewTable.jsx +++ b/web/gui-v2/src/components/ListViewTable.jsx @@ -184,8 +184,7 @@ const listToDropdownOptions = (list) => { } const AGGREGATE_SUM_COLUMNS = [ - 'ai_pubs', - 'ai_patents', + ...SLIDER_COLUMNS, ]; /** @@ -563,7 +562,7 @@ const ListViewTable = ({ footerData={footerData} minHeight={400} paginate={true} - // showFooter={ /* TODO */ } // TODO TODO TODO + showFooter={currentFilters.name.length > 0} sortByDir={sortDir} sortByKey={sortKey} updateSortByDir={setSortDir}