mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] store: properly handle null values
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user