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
Prev Previous commit
Next Next commit
Remove regex
  • Loading branch information
fej-snikduj committed Oct 24, 2017
commit 34d1303b90e13f01979f208deb54558826edf8f7
3 changes: 1 addition & 2 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export const getValueAt = (firebase, path, notSetValue) => {
return notSetValue
}

const pathArr = `/${fixPath(path)}`.split(/\//).slice(1)
const dotPath = getDotStrPath(pathArr)
const dotPath = getDotStrPath(path)
const valueAtPath = get(firebase, dotPath)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also have the notSetValue be passed here so it is used as the defaultValue:

return get(firebase, dotPath, notSetValue)


return valueAtPath
Expand Down