Skip to content

Commit 408facb

Browse files
committed
Fix bug in vue object merge
1 parent 64ae782 commit 408facb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/vue-object-merge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { isPlainObject } from 'lodash';
66
export const stateMerge = function(state: any, value: any, propName?: string, ignoreNull?: boolean) {
77
if (isPlainObject(state) && (propName == null || propName in state)) {
88
const o = propName == null ? state : state[propName];
9-
if (o != null) {
9+
if (o != null && isPlainObject(value)) {
1010
for (const prop in value) {
1111
stateMerge(o, value[prop], prop, ignoreNull);
1212
}

0 commit comments

Comments
 (0)