mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 18:10:33 +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) {
|
for (const key in oldSource) {
|
||||||
if (!(key in newSource)) {
|
if (!newSource || !(key in newSource)) {
|
||||||
delete target[key]
|
delete target[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user