Skip to content

Commit

Permalink
Merge branch 'main' into andrea/custom-launcher-jupyter-free
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-code authored Sep 24, 2024
2 parents 26d6197 + 2945fb9 commit 488433c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/features/sessionsV2/ShowSessionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ function SessionDetails({
data: launchers,
isLoading: isLoadingLaunchers,
error: launchersError,
} = useGetProjectSessionLaunchersQuery({ projectId: projectId ?? "" });
} = useGetProjectSessionLaunchersQuery(projectId ? { projectId } : skipToken);
const { data: project, isLoading: isLoadingProject } =
useGetProjectsByNamespaceAndSlugQuery(
namespace && slug ? { namespace, slug } : skipToken
Expand Down Expand Up @@ -438,11 +438,11 @@ function SessionDetails({
</div>
);
}
if (launchersError || !launcher)
if (launchersError || !launcher || !project)
return (
<div className={cx("d-flex", "align-items-center")}>
<p className={cx("text-white", "mb-0")}>
<ExclamationTriangle className="bi" /> Session not accessible
<ExclamationTriangle className="bi" /> Session details unavailable
</p>
</div>
);
Expand Down

0 comments on commit 488433c

Please sign in to comment.