Skip to content

Commit

Permalink
grid improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
giacoliva committed Jan 12, 2024
1 parent 58fa881 commit ffc49ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/workspaces/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Dashboard: FC<IDashboardProps> = ({ ...props }) => {
xxl={12}
className="lg:pl-4 lg:pr-0 px-4 flex flex-auto"
>
{selectedWsId >= 0 ? (
{selectedWsId >= 0 && selectedWsId < workspaces.length ? (
<WorkspaceContainer
tenantNamespace={tenantNamespace}
workspace={workspaces[selectedWsId]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const WorkspaceGrid: FC<IWorkspaceGridProps> = ({ ...props }) => {
))}
<WorkspaceGridItem
id={-2}
title="+ Add Workspace"
title="Add Workspace"
previewName="+"
isActive={selectedWs === -2}
onClick={onClick}
/>
Expand Down

0 comments on commit ffc49ef

Please sign in to comment.