Skip to content

Commit

Permalink
fix a regression introduced by finos#1146
Browse files Browse the repository at this point in the history
  • Loading branch information
akphi committed May 10, 2022
1 parent 928c493 commit 159e95f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/legend-studio/src/stores/ChangeDetectionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ export class ChangeDetectionState {
}

stop(force = false): void {
this.graphObserveState.reset();
this.changeDetectionReaction?.();
this.changeDetectionReaction = undefined;
if (force) {
Expand Down Expand Up @@ -752,7 +751,7 @@ export class ChangeDetectionState {
}

*observeGraph(): GeneratorFn<void> {
if (!this.graphObserveState.isInInitialState) {
if (this.initState.hasSucceeded) {
throw new IllegalStateError(
`Can't observe graph: change detection must be stopped first`,
);
Expand Down

0 comments on commit 159e95f

Please sign in to comment.