2
0
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:
pimlie
2021-05-17 02:07:17 +02:00
parent d8651be35b
commit 449bb20e6f
+1 -1
View File
@@ -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]
} }
} }