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:
parent
f482da0880
commit
18587168dc
@ -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`;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user