Skip to content

Commit

Permalink
Fixed issue with validation of set names
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 2, 2022
1 parent 261b369 commit 8ed3fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/app/admin/component/ConfigurationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ export function ConfigurationForm({ configurations, configuration = {}, loading,
placeholder={translator('label.configuration-name-placeholder')}
{...register(`name`, {
required: true,
value: configuration.value || null,
validate: {
unique: v => !includes(names, v)
unique: v => v.trim() === configuration.name || !includes(names, v)
}
})} />
<Form.Text className={errors.name ? 'text-danger' : 'text-muted'}>
Expand Down

0 comments on commit 8ed3fe3

Please sign in to comment.