Skip to content

Commit

Permalink
fix displaying namespace resource
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Jan 21, 2025
1 parent 7c3642c commit 28bd464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/Namespaces/ResourcesUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const ResourcesUsage = ({ namespace }) => {
pollingInterval: 3300,
},
);
if (resourceQuotas?.length < 1) return null;
if (!resourceQuotas || resourceQuotas?.length < 1) return null;
return (
<>
<div className="item-wrapper tall">
Expand Down
2 changes: 1 addition & 1 deletion src/shared/helpers/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ export function formatResourceUnit(
}
});

return output.string;
return output;
}

0 comments on commit 28bd464

Please sign in to comment.