Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix formatting
  • Loading branch information
Haroenv authored Oct 5, 2020
commit e304be2d3cbe257bc6b59bd519515565311bdc9c
6 changes: 5 additions & 1 deletion packages/test-utils/src/recursively-set-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export function recursivelySetData(vm, target, data) {
const val = data[key]
const targetVal = target[key]

if (isPlainObject(val) && isPlainObject(targetVal) && Object.keys(val).length > 0) {
if (
isPlainObject(val) &&
isPlainObject(targetVal) &&
Object.keys(val).length > 0
) {
recursivelySetData(vm, targetVal, val)
} else {
vm.$set(target, key, val)
Expand Down