mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix demo code
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ export default class Counter extends Widget {
|
||||
counter: 0
|
||||
};
|
||||
|
||||
constructor(parent: Widget, props: {initialState?: number}) {
|
||||
constructor(parent: Widget | null, props: {initialState?: number}) {
|
||||
super(parent);
|
||||
this.state.counter = props.initialState || 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user