Commit 9919b3a
authored
fix: mark Home component as async to support await expression
The example used `await getLogtoContext()` inside a normal function,
which caused a TypeScript error:
'await' expressions are only allowed within async functions and at the top levels of modules (TS1308).
Fixed by marking the Home component as async.1 parent ce070f1 commit 9919b3a
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
0 commit comments