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
fieldErrors={fieldErrors}
name="name"
label={LL.NAME(0)}
label={LL.NAME(0) + ' (' + LL.OPTIONAL() + ')'}
value={editItem.name}
fullWidth
margin="normal"

View File

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