We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64ae782 commit 408facbCopy full SHA for 408facb
src/utils/vue-object-merge.ts
@@ -6,7 +6,7 @@ import { isPlainObject } from 'lodash';
6
export const stateMerge = function(state: any, value: any, propName?: string, ignoreNull?: boolean) {
7
if (isPlainObject(state) && (propName == null || propName in state)) {
8
const o = propName == null ? state : state[propName];
9
- if (o != null) {
+ if (o != null && isPlainObject(value)) {
10
for (const prop in value) {
11
stateMerge(o, value[prop], prop, ignoreNull);
12
}
0 commit comments