Skip to content

Commit

Permalink
remove val in check but check for void 0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusbesjes committed Dec 28, 2016
1 parent 969febd commit ca91e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions path-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ function parse (state, depth, filter, result, target) {
function populate (state, depth, filter, result, target) {
const nextDepth = depth && depth - 1
state.each((p, key) => {
if (!filter || filter(p)) {
if ('val' in p) {
if (p && (!filter || filter(p))) {
if (p.val !== void 0) {
let val = p.val
let sendVal
if (val && val.isBase) {
Expand Down

0 comments on commit ca91e04

Please sign in to comment.