File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
manager/src/features/Account/Quotas Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @linode/api-v4 " : Added
3+ ---
4+
5+ New quota properties ([ #13177 ] ( https://github.com/linode/manager/pull/13177 ) )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export interface Quota {
2020 /**
2121 * Sets usage column to be n/a when value is false.
2222 */
23- has_usage : boolean ;
23+ has_usage ? : boolean ;
2424
2525 /**
2626 * A unique identifier for the quota.
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ export const QuotasTable = (props: QuotasTableProps) => {
7474 // This will only fetch for the paginated set
7575 const quotaIdsHavingUsage =
7676 quotas ?. data
77- . filter ( ( quota ) => quota . has_usage )
77+ . filter (
78+ ( quota ) => quota . has_usage === true || quota . has_usage === undefined
79+ )
7880 . map ( ( quota ) => quota . quota_id ) ?? [ ] ;
7981 const quotaUsageQueries = useQueries ( {
8082 queries : quotaIdsHavingUsage . map ( ( quotaId ) =>
@@ -152,7 +154,9 @@ export const QuotasTable = (props: QuotasTableProps) => {
152154 filteredQuotasWithUsage . map ( ( quota , index ) => {
153155 return (
154156 < QuotasTableRow
155- hasUsage = { quota . has_usage }
157+ hasUsage = {
158+ quota . has_usage === true || quota . has_usage === undefined
159+ }
156160 index = { index }
157161 isDataPresent = { quota . usage ?. usage !== null }
158162 key = { quota . quota_id }
You can’t perform that action at this time.
0 commit comments