chore: update ramda
This commit is contained in:
parent
82132e8eb8
commit
ffb66814f6
45 changed files with 2741 additions and 1620 deletions
|
|
@ -213,7 +213,7 @@ const ECol = ({ editing, focus, config, extraPaddingRight, extraPadding }) => {
|
|||
}
|
||||
|
||||
const groupStriped = elements => {
|
||||
const [toStripe, noStripe] = R.partition(R.propEq('stripe', true))(elements)
|
||||
const [toStripe, noStripe] = R.partition(R.propEq(true, 'stripe'))(elements)
|
||||
|
||||
if (!toStripe.length) {
|
||||
return elements
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ const ETable = ({
|
|||
setSaving(true)
|
||||
|
||||
const it = validationSchema.cast(value, { assert: 'ignore-optionality' })
|
||||
const index = R.findIndex(R.propEq('id', it.id))(data)
|
||||
const index = R.findIndex(R.propEq(it.id, 'id'))(data)
|
||||
const list = index !== -1 ? R.update(index, it, data) : R.prepend(it, data)
|
||||
|
||||
if (!R.equals(data[index], it)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue