commit
49bd4f070f
1 changed files with 4 additions and 0 deletions
|
|
@ -138,6 +138,10 @@ const put = async (rawPath, value) => {
|
||||||
|
|
||||||
if (Array.isArray(theValue)) {
|
if (Array.isArray(theValue)) {
|
||||||
await Promise.all(theValue.map(v => set(rawPath, v)))
|
await Promise.all(theValue.map(v => set(rawPath, v)))
|
||||||
|
|
||||||
|
// Do not remove this return, an array is also an object
|
||||||
|
// eslint-disable-next-line no-useless-return
|
||||||
|
return
|
||||||
} else if (Schema.isObj(theValue)) {
|
} else if (Schema.isObj(theValue)) {
|
||||||
const writes = mapValues(theValue, (v, k) => put(`${rawPath}.${k}`, v))
|
const writes = mapValues(theValue, (v, k) => put(`${rawPath}.${k}`, v))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue