Skip to content

Commit

Permalink
Merge pull request #1401 from fedspendingtransparency/FDG-9594-Add-Mo…
Browse files Browse the repository at this point in the history
…nth-and-year-Filters

FDG-9594 Check meta for empty data
  • Loading branch information
nicweidner authored Sep 25, 2024
2 parents 4bfacab + c1c6e1b commit 33fc1b3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ const TableSectionContainer = ({
userFilterUnmatchedForDateRange={userFilterUnmatchedForDateRange}
apiFilterDefault={apiFilterDefault && !selectedTable?.apiFilter?.displayDefaultData}
onToggleLegend={legendToggler}
emptyData={!isLoading && !serverSidePagination && (!apiData || !apiData.data || !apiData.data.length) && !apiError}
emptyData={
!isLoading &&
!serverSidePagination &&
(!apiData || !apiData.data || !apiData.data.length) &&
(!tableMeta || tableMeta?.count === 0) &&
!apiError
}
unchartable={noChartMessage !== undefined}
currentTab={selectedTab}
datasetName={config?.name}
Expand Down

0 comments on commit 33fc1b3

Please sign in to comment.