fix: show diagnostics if there are no parameters (#17967)

Prefer to show the top level diagnostics inside the parameters section
for context but this adds a case to show diagnostics if there are no
parameters.

Normally, the entire parameters section is hidden if there are no
parameters.
This commit is contained in:
Jaayden Halko
2025-05-21 10:55:37 -04:00
committed by GitHub
parent b7462fb256
commit 36d938fa88
@@ -489,6 +489,10 @@ export const CreateWorkspacePageViewExperimental: FC<
</section>
)}
{parameters.length === 0 && diagnostics.length > 0 && (
<Diagnostics diagnostics={diagnostics} />
)}
{parameters.length > 0 && (
<section className="flex flex-col gap-9">
<hgroup>