Skip to content

Commit

Permalink
fix(instance) close side panel if panel instance was deleted
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Jan 28, 2025
1 parent 64cb441 commit c6d4b52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pages/instances/InstanceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ const InstanceList: FC = () => {
}
}, [filteredInstances]);

useEffect(() => {
if (panelParams.instance) {
if (
!instances.some((instance) => instance.name === panelParams.instance)
) {
panelParams.clear();
}
}
}, [instances]);

const getHeaders = (hiddenCols: string[]) =>
[
{
Expand Down

0 comments on commit c6d4b52

Please sign in to comment.