mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user