From dc8531a24ee8fea4af50ca09564f531abcbbdc5a Mon Sep 17 00:00:00 2001 From: Oliver Dudgeon <22367286+OliverDudgeon@users.noreply.github.com> Date: Wed, 21 Jun 2023 20:16:36 +0100 Subject: [PATCH] fix(dataset-sub-table): stop showing dataset storage subscriptions when the unit doesn't have any Fix #1022 --- features/ProjectStats/ProjectStatsSection.tsx | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/features/ProjectStats/ProjectStatsSection.tsx b/features/ProjectStats/ProjectStatsSection.tsx index 3ca25a384..447d29898 100644 --- a/features/ProjectStats/ProjectStatsSection.tsx +++ b/features/ProjectStats/ProjectStatsSection.tsx @@ -171,25 +171,27 @@ export const ProjectStatsSection = ({ userFilter }: ProjectStatsSectionProps) => isLoading={isProjectSubscriptionsLoading} tableContainer={false} /> - 0 && ( + + }} + data={storageSubscriptions} + enableSearch={false} + error={getErrorMessage(storageSubscriptionsError)} + isLoading={!storageSubscriptions && isStorageSubscriptionsLoading} + tableContainer={false} + /> + )} ); };