Skip to content

Commit

Permalink
fix(dataset-sub-table): stop showing dataset storage subscriptions wh…
Browse files Browse the repository at this point in the history
…en the unit doesn't have any

Fix #1022
  • Loading branch information
OliverDudgeon committed Jun 21, 2023
1 parent e5a809b commit dc8531a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions features/ProjectStats/ProjectStatsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,25 +171,27 @@ export const ProjectStatsSection = ({ userFilter }: ProjectStatsSectionProps) =>
isLoading={isProjectSubscriptionsLoading}
tableContainer={false}
/>
<DataTable
columns={storageColumns}
customTableProps={{
sx: {
"& td": {
wordBreak: "break-word",
{(storageSubscriptions ?? []).length > 0 && (
<DataTable
columns={storageColumns}
customTableProps={{
sx: {
"& td": {
wordBreak: "break-word",
},
"& tr": {
display: "grid",
gridTemplateColumns: "61px 1fr 110px 220px 100px 100px 100px 100px",
},
},
"& tr": {
display: "grid",
gridTemplateColumns: "61px 1fr 110px 220px 100px 100px 100px 100px",
},
},
}}
data={storageSubscriptions}
enableSearch={false}
error={getErrorMessage(storageSubscriptionsError)}
isLoading={!storageSubscriptions && isStorageSubscriptionsLoading}
tableContainer={false}
/>
}}
data={storageSubscriptions}
enableSearch={false}
error={getErrorMessage(storageSubscriptionsError)}
isLoading={!storageSubscriptions && isStorageSubscriptionsLoading}
tableContainer={false}
/>
)}
</Box>
);
};

0 comments on commit dc8531a

Please sign in to comment.