We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a821908 commit cda6e4bCopy full SHA for cda6e4b
packages/test-utils/src/recursively-set-data.js
@@ -5,7 +5,7 @@ export function recursivelySetData(vm, target, data) {
5
const val = data[key]
6
const targetVal = target[key]
7
8
- if (isPlainObject(val) && isPlainObject(targetVal)) {
+ if (isPlainObject(val) && isPlainObject(targetVal) && Object.keys(val).length > 0) {
9
recursivelySetData(vm, targetVal, val)
10
} else {
11
vm.$set(target, key, val)
0 commit comments