Skip to content

Commit 5682259

Browse files
authored
Merge pull request mendix#8846 from mendix/MvM-LucasSDKIssues
Resolve SDK issues (see description)
2 parents 759827c + 8a216fe commit 5682259

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)