name is optional

This commit is contained in:
proddy
2024-07-08 12:04:34 +02:00
parent 8dc2677c13
commit 30430844d3
2 changed files with 1 additions and 2 deletions

View File

@@ -344,7 +344,7 @@ const SchedulerDialog = ({
<ValidatedTextField <ValidatedTextField
fieldErrors={fieldErrors} fieldErrors={fieldErrors}
name="name" name="name"
label={LL.NAME(0)} label={LL.NAME(0) + ' (' + LL.OPTIONAL() + ')'}
value={editItem.name} value={editItem.name}
fullWidth fullWidth
margin="normal" margin="normal"

View File

@@ -303,7 +303,6 @@ export const schedulerItemValidation = (
) => ) =>
new Schema({ new Schema({
name: [ name: [
{ required: true, message: 'Name is required' },
{ {
type: 'string', type: 'string',
pattern: /^[a-zA-Z0-9_\\.]{1,15}$/, pattern: /^[a-zA-Z0-9_\\.]{1,15}$/,