Skip to content

Commit

Permalink
[Workspace]Fix workspace description error when name invalid (opensea…
Browse files Browse the repository at this point in the history
…rch-project#8079)

* Fix workspace description error when name invalid

Signed-off-by: Lin Wang <[email protected]>

* Changeset file for PR opensearch-project#8079 created/updated

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
wanglam and opensearch-changeset-bot[bot] authored Sep 9, 2024
1 parent dfc7def commit ee5d482
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8079.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- [Workspace]Fix workspace description error when name invalid ([#8079](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8079))
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ export const WorkspaceCreatorForm = (props: WorkspaceCreatorFormProps) => {
/>
<EuiSpacer size="m" />
<div {...generateRightSidebarScrollProps(RightSidebarScrollField.Description)} />
<WorkspaceDescriptionField
value={formData.description}
onChange={setDescription}
error={formErrors.name?.message}
/>
<WorkspaceDescriptionField value={formData.description} onChange={setDescription} />
<EuiSpacer size="m" />
<EuiCompressedFormRow
label={i18n.translate('workspace.form.workspaceDetails.color.label', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export const WorkspaceDetailFormDetails = ({
value={formData.description}
onChange={setDescription}
readOnly={!isEditing}
error={formErrors.name?.message}
/>
</EuiDescribedFormGroup>
<EuiDescribedFormGroup title={<h3>{detailsUseCaseLabel}</h3>}>
Expand Down

0 comments on commit ee5d482

Please sign in to comment.