Skip to content

Commit 44ef78b

Browse files
authored
[FIX] developer/tutorials/discover_js_framework: add missing this
closes #5677 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent cae0edc commit 44ef78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/developer/tutorials/discover_js_framework/01_owl_components.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ button.
4646
static template = "my_module.Counter";
4747
4848
setup() {
49-
state = useState({ value: 0 });
49+
this.state = useState({ value: 0 });
5050
}
5151
5252
increment() {

0 commit comments

Comments
 (0)