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

Fix CPU spike when opening PodDetails from MonacoEditor

- Don't mount the children of DrawerParamToggler when closed (default)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-15 09:24:13 -04:00
parent 23f7d438f1
commit 9a42523a24

View File

@ -38,9 +38,11 @@ export class DrawerParamToggler extends React.Component<DrawerParamTogglerProps,
<Icon material={icon}/>
</div>
</div>
<div className={cssNames("param-content", { open })}>
{children}
</div>
{open && (
<div className={cssNames("param-content", { open })}>
{children}
</div>
)}
</div>
);
}