Skip to content

Commit

Permalink
fix regression introduced in finos#1693
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayathri committed Jan 10, 2023
1 parent e541585 commit 8acef53
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changeset/mean-oranges-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
'@finos/legend-application-studio': patch
---
16 changes: 11 additions & 5 deletions packages/legend-application-studio/src/stores/EditorStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,17 @@ export class EditorStore implements CommandRegistrar {
if (graphEditor === GRAPH_EDITOR_MODE.GRAMMAR_TEXT) {
// Stop change detection as we don't need the actual change detection in text mode
this.changeDetectionState.stop();
this.changeDetectionState.computeLocalChangesInTextMode(
(yield this.graphManagerState.graphManager.pureCodeToEntities(
this.grammarTextEditorState.graphGrammarText,
)) as Entity[],
);
try {
yield flowResult(
this.changeDetectionState.computeLocalChangesInTextMode(
(yield this.graphManagerState.graphManager.pureCodeToEntities(
this.grammarTextEditorState.graphGrammarText,
)) as Entity[],
),
);
} catch (error) {
assertErrorThrown(error);
}
}
}

Expand Down

0 comments on commit 8acef53

Please sign in to comment.