Skip to content

Commit

Permalink
fix: error on edit data of component without properties in devtools (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1ker authored and Akryum committed Mar 23, 2019
1 parent 26b2ed7 commit 0243b14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ export function get (object, path) {
}

export function has (object, path, parent = false) {
if (typeof object === 'undefined') {
return false
}

const sections = path.split('.')
const size = !parent ? 1 : 2
while (sections.length > size) {
Expand Down

0 comments on commit 0243b14

Please sign in to comment.