We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a4d8d commit ff68db4Copy full SHA for ff68db4
packages/reactivity/src/baseHandlers.ts
@@ -70,7 +70,7 @@ function deleteProperty(target: any, key: string | symbol): boolean {
70
const hadKey = hasOwn(target, key)
71
const oldValue = target[key]
72
const result = Reflect.deleteProperty(target, key)
73
- if (hadKey) {
+ if (result && hadKey) {
74
/* istanbul ignore else */
75
if (__DEV__) {
76
trigger(target, OperationTypes.DELETE, key, { oldValue })
0 commit comments