We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780fab8 commit ec904adCopy full SHA for ec904ad
packages/pinia/src/store.ts
@@ -90,14 +90,14 @@ function mergeReactiveObjects<
90
91
// no need to go through symbols because they cannot be serialized anyway
92
for (const key in patchToApply) {
93
- if (!Object.prototype.hasOwnProperty.call(patchToApply, key)) continue
+ if (!patchToApply.hasOwnProperty(key)) continue
94
const subPatch = patchToApply[key]
95
const targetValue = target[key]
96
97
if (
98
isPlainObject(targetValue) &&
99
isPlainObject(subPatch) &&
100
- Object.prototype.hasOwnProperty.call(target, key) &&
+ target.hasOwnProperty(key) &&
101
!isRef(subPatch) &&
102
!isReactive(subPatch)
103
) {
0 commit comments