mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] observer: properly handle dates
This commit is contained in:
@@ -35,7 +35,7 @@ export class Observer {
|
||||
}
|
||||
|
||||
observe(value: any, parent?: any): any {
|
||||
if (value === null || typeof value !== "object") {
|
||||
if (value === null || typeof value !== "object" || value instanceof Date) {
|
||||
// fun fact: typeof null === 'object'
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user