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

Allow Node panel to open for virtual nodes (#3213)

Co-authored-by: Michael Pappas <mhagen@mapcom.com>
This commit is contained in:
Jon Stelly 2021-06-30 10:30:19 -05:00 committed by GitHub
parent f482da0880
commit 18587168dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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`;
}