[FIX] store: properly handle null values

This commit is contained in:
Géry Debongnie
2019-04-12 21:07:12 +02:00
parent 2ea01455cb
commit caed076f2a
2 changed files with 23 additions and 0 deletions
+4
View File
@@ -202,6 +202,10 @@ export function makeObserver(): Observer {
}
function observe(value: any) {
if (value === null) {
// fun fact: typeof null === 'object'
return;
}
if (typeof value !== "object") {
return;
}