Skip to content

Commit f81c689

Browse files
committed
fix field count error
1 parent 11c3ccd commit f81c689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/devtools/components/DataField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const specialTypeRE = /^\[native \w+ (.*)\]$/
4848
function subFieldCount (value) {
4949
if (Array.isArray(value)) {
5050
return value.length
51-
} else if (typeof value === 'object') {
51+
} else if (value && typeof value === 'object') {
5252
return Object.keys(value).length
5353
} else {
5454
return 0

0 commit comments

Comments
 (0)