Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(populate): added support for storeAs when populating child
  • Loading branch information
nagarjuna993 committed Jun 29, 2020
commit 62ce0c60e5d948a880c04c8d4c4ce7b57fbfe350
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function populateChild(state, child, p) {
// populate child is key
if (typeof childVal === 'string' || childVal instanceof String) {
// attach child paramter if it exists
const dotRoot = p.root
const dotRoot = (p.storeAs ? p.storeAs : p.root)
.split('/')
.filter(Boolean) // Drop falsey values (compact)
.join('.')
Expand Down