Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export const QuotasTable = (props: QuotasTableProps) => {
enabled: isGlobalScope ? true : hasSelectedLocation,
});

if (quotasErrorMessage) {
const isNotFoundErrorIgnored = quotasErrorMessage === 'Not found';

if (quotasErrorMessage && !isNotFoundErrorIgnored) {
return <ErrorState errorText={quotasErrorMessage} />;
}

Expand Down Expand Up @@ -103,6 +105,12 @@ export const QuotasTable = (props: QuotasTableProps) => {
message="Apply filters above to see quotas and current usage."
sx={{ height: QUOTA_ROW_MIN_HEIGHT }}
/>
) : isNotFoundErrorIgnored ? (
<TableRowEmpty
colSpan={4}
message="No quotas to display."
sx={{ height: QUOTA_ROW_MIN_HEIGHT }}
/>
) : quotasWithUsage.length === 0 ? (
<TableRowEmpty
colSpan={4}
Expand Down
Loading