We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9acfc0 commit 42962b7Copy full SHA for 42962b7
src/app/(authed)/(project-doc)/[...slug]/page.tsx
@@ -30,11 +30,8 @@ export default function Page() {
30
{project && version && specification &&
31
<Documentation url={specification.url} />
32
}
33
- {project && !version &&
34
- <ErrorMessage text="The selected branch or tag was not found."/>
35
- }
36
- {project && !specification &&
37
- <ErrorMessage text="The selected specification was not found."/>
+ {project && (!version || !specification) &&
+ <ErrorMessage text={`The selected ${!version ? "branch or tag" : "specification"} was not found.`}/>
38
39
{!project && <NotFound/>}
40
</>
0 commit comments