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
…8084)

* Fix workspace description error when name invalid



* Changeset file for PR #8079 created/updated

---------



(cherry picked from commit ee5d482)

Signed-off-by: Lin Wang <wonglam@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 3931cf0 commit 514f838
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 514f838

Please sign in to comment.