Skip to content

Commit

Permalink
fix(code-gen): fix example-solution.ts format problem (#2207)
Browse files Browse the repository at this point in the history
Co-authored-by: 林熠 <[email protected]>
  • Loading branch information
BARM and JackLian authored Jul 6, 2023
1 parent cb2e050 commit 323e85f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/code-generator/src/cli/solutions/example-solution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ codealike.json
},
"lifeCycles": {
"componentDidMount": {
"type": "JSExpression",
"value": "function() { console.log('componentDidMount'); }"
"type": "JSFunction",
"value": "function componentDidMount() {\\n console.log('componentDidMount');\\n}"
}
},
"methodsModule": {
Expand Down

0 comments on commit 323e85f

Please sign in to comment.