Skip to content

Commit

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

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

* Changeset file for PR #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>
(cherry picked from commit ee5d482)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent eccf54f commit e6a6724
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 e6a6724

Please sign in to comment.