mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 04:29:37 +03:00
fix: also delete previous values if computed value was faly
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ export function applyDifference (target: AnyObject, newSource: AnyObject, oldSou
|
||||
}
|
||||
|
||||
for (const key in oldSource) {
|
||||
if (!(key in newSource)) {
|
||||
if (!newSource || !(key in newSource)) {
|
||||
delete target[key]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user