From 0243b14e30db91b04d4684aa0ddbde1a127ced7c Mon Sep 17 00:00:00 2001 From: Gavrilov Evgeniy Date: Sat, 23 Mar 2019 21:48:44 +0300 Subject: [PATCH] fix: error on edit data of component without properties in devtools (#907) --- src/util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.js b/src/util.js index 9da143a91..fe16fae5a 100644 --- a/src/util.js +++ b/src/util.js @@ -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) {