chore: bump yup version

This commit is contained in:
Rafael 2024-12-01 10:24:35 +00:00
parent c213f9b295
commit 167f9f45a8
7 changed files with 90 additions and 1153 deletions

View file

@ -75,7 +75,7 @@ const ETable = ({
setSaving(true)
const it = validationSchema.cast(value)
const it = validationSchema.cast(value, { assert: 'ignore-optionality'})
const index = R.findIndex(R.propEq('id', it.id))(data)
const list = index !== -1 ? R.update(index, it, data) : R.prepend(it, data)