Skip to content

Commit a05f07d

Browse files
authored
[FW][FIX] developer/tutorials/discover_js_framework: add missing this
closes #5679 Forward-port-of: #5677 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent f4c091b commit a05f07d

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)