Skip to content

Commit 8a216fe

Browse files
committed
Resolve issue mendix#8596
1 parent 1b8b779 commit 8a216fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/en/docs/apidocs-mxsdk/mxsdk/sdk-howtos/generating-code-from-the-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function generate(domainModel1: domainmodels.DomainModel, model: IModel) {
137137
The original code expects a unit as the first argument. The unit is supposed to be the container for the domain model. However, you don't want to create a new domain model, you are going to re-use an existing domain model instead. Therefore, you need to remove this line:
138138
139139
```ts
140-
const domainModel1 = domainmodels.DomainModel.createIn(unit);
140+
var domainModel1 = domainmodels.DomainModel.createIn(unit);
141141
```
142142
143143
Remove the last bracket on the last line so your JavaScript code will look like this:

0 commit comments

Comments
 (0)