improvements to selection handling (#819, #823); side panel only consumes layout space when selected (#804)

This commit is contained in:
Michael Quigley 2025-01-08 17:26:28 -05:00
parent cba3b95217
commit 70a1a43a9a
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 1 additions and 4 deletions

View File

@ -139,8 +139,6 @@ const ApiConsole = ({ logout }: ApiConsoleProps) => {
}
}, [selectedNode]);
let wrappedSidePanel = sidePanel ? <Grid2 size={4}>{sidePanel}</Grid2> : null;
return (
<div>
<NavBar logout={logout} />
@ -148,7 +146,7 @@ const ApiConsole = ({ logout }: ApiConsoleProps) => {
<Grid2 size="grow">
{mainPanel}
</Grid2>
{wrappedSidePanel}
{sidePanel ? <Grid2 size={4}>{sidePanel}</Grid2> : null}
</Grid2>
</div>
);

View File

@ -26,7 +26,6 @@ const TabularView = () => {
useEffect(() => {
let sn = nodes.find(node => Object.keys(rowSelection).includes(node.id));
console.log("sn", sn);
updateSelectedNode(sn);
updateNodes(nodes.map(node => (sn && node.id === sn.id) ? { ...node, selected: true } : { ...node, selected: false }));
}, [rowSelection]);