refactor: make it obvious what it's doing
This commit is contained in:
parent
c3c837f87d
commit
fc47944ac8
1 changed files with 3 additions and 3 deletions
|
|
@ -126,9 +126,9 @@ const validationSchema = Yup.object().shape({
|
||||||
'unique-name',
|
'unique-name',
|
||||||
'Machine name is already in use.',
|
'Machine name is already in use.',
|
||||||
(value, context) =>
|
(value, context) =>
|
||||||
!R.any(
|
!R.includes(
|
||||||
it => R.equals(R.toLower(it), R.toLower(value)),
|
R.toLower(value),
|
||||||
context.options.context.machineNames
|
R.map(R.toLower, context.options.context.machineNames)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue