mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-30 20:04:47 +00:00
don't delete observables whose value is undefined
This commit is contained in:
@@ -152,8 +152,6 @@ export class Store<T extends { [key: string]: any }> {
|
|||||||
|
|
||||||
if (path.includes(revisionPath) || revisionPath.includes(path)) {
|
if (path.includes(revisionPath) || revisionPath.includes(path)) {
|
||||||
const val = getValueByPointer(this.cache.data, path)
|
const val = getValueByPointer(this.cache.data, path)
|
||||||
if (val === undefined) return kill(path)
|
|
||||||
|
|
||||||
this.watchedNodes[path].next(val)
|
this.watchedNodes[path].next(val)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user