Skip to content

Commit

Permalink
fixes #1588
Browse files Browse the repository at this point in the history
  • Loading branch information
akphi committed Oct 26, 2022
1 parent bce376e commit 96ef53f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-pans-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-application-studio': patch
---

Service editor: the default lambda created is now the basic lambda `|''` instead of the stubbed empty lambda ([#1588](https://github.com/finos/legend-studio/issues/1588)).
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ import {
DefaultH2AuthenticationStrategy,
ModelGenerationSpecification,
DataElement,
stub_RawLambda,
stub_Database,
Measure,
} from '@finos/legend-graph';
Expand Down Expand Up @@ -467,7 +466,12 @@ export class NewServiceDriver extends NewElementDriver<Service> {
}
service_setExecution(
service,
new PureSingleExecution(stub_RawLambda(), service, mapping, runtimeValue),
new PureSingleExecution(
this.editorStore.graphManagerState.graphManager.createDefaultBasicRawLambda(),
service,
mapping,
runtimeValue,
),
this.editorStore.changeDetectionState.observerContext,
);
service_initNewService(service);
Expand Down

0 comments on commit 96ef53f

Please sign in to comment.