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

Co-authored-by: Michael Pappas <mhagen@mapcom.com>
This commit is contained in:
Jon StellyandMichael Pappas authored and GitHub committed 2021-06-30 11:30:19 -04:00
1 parent f482da0880
commit 18587168dc
1 file changed
+1 -1
@@ -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`;
}