Skip to content

Commit

Permalink
remove additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 30, 2024
1 parent ac533c4 commit 7a37f69
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export default async function ReleasePage({
const release = await api.release.byId(params.versionId);
const deployment = await api.deployment.bySlug(params);
const workspace = await api.workspace.bySlug(params.workspaceSlug);
if (workspace == null) return notFound();

if (release == null || deployment == null) notFound();
if (workspace == null || release == null || deployment == null) notFound();

const system = await api.system.bySlug(params);
const environments = await api.environment.bySystemId(system.id);
Expand Down

0 comments on commit 7a37f69

Please sign in to comment.