Skip to content

Commit 0a5e6b7

Browse files
committed
Fix when showing parameters
1 parent ae1890d commit 0a5e6b7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

site/src/components/RichParameterInput/RichParameterInput.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ export const WithError: Story = {
8080
name: "number_parameter",
8181
type: "number",
8282
description: "Numeric parameter",
83+
default_value: "",
8384
}),
85+
error: true,
86+
helperText: "Number must be greater than 5",
8487
},
8588
};
8689

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
217217
</FormFields>
218218
</FormSection>
219219

220-
{parameters && (
220+
{parameters.length > 0 && (
221221
<FormSection
222222
title="Parameters"
223223
description="These are the settings used by your template. Please note that immutable parameters cannot be modified once the workspace is created."

0 commit comments

Comments
 (0)