1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix for #3206 - Azure Virtual Nodes

Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com>
This commit is contained in:
Jon Stelly 2021-06-29 21:32:15 -05:00
parent f1abfb88bf
commit 3027495fa8

View File

@ -35,7 +35,7 @@ interface Props {
export class NodeDetailsResources extends React.Component<Props> {
toMi(resource: string) {
if (resource.endsWith("Ki")) {
if (resource?.endsWith("Ki")) {
return `${(parseInt(resource) / 1024).toFixed(1)}Mi`;
}