message: Fixes - Restoring the previousState with latest changes on saving the configuration
diff: @@ -44,6 +44,7 @@ export class TriggerDetailComponent implements OnInit, OnDestroy {
  appProperties?: string[];
  private previousState: CurrentTriggerState;
  + private getCurrentTriggerState: Observable<CurrentTriggerState>;
  private ngDestroy$ = SingleEmissionSubject.create();
  constructor(
  @@ -64,11 +65,11 @@ export class TriggerDetailComponent implements OnInit, OnDestroy {
  });
  this.isSaving$ = this.store.pipe(TriggerConfigureSelectors.getCurrentTriggerIsSaving);
  - const getCurrentTriggerState = this.store.select(TriggerConfigureSelectors.getConfigureState).pipe(take(1));
  + this.getCurrentTriggerState = this.store.select(TriggerConfigureSelectors.getConfigureState).pipe(take(1));
  this.store.select(TriggerConfigureSelectors.selectCurrentTriggerId)
  .pipe(
  filter(currentTriggerId => !!currentTriggerId),
  - switchMap(() => getCurrentTriggerState),
  + switchMap(() => this.getCurrentTriggerState),
  takeUntil(this.ngDestroy$),
  )
  .subscribe((state) => {
  @@ -91,6 +92,7 @@ export class TriggerDetailComponent implements OnInit, OnDestroy {
  return;
  }
  + this.getCurrentTriggerState.subscribe(state => this.previousState = state);
  this.settingsForm.reset(this.settingsForm.getRawValue());
  this.updateSettingsStatus({
  // TODO: replace manual valid check when async validation bug is fixed in ng forms -> github.com/angular/angular/issues/20424
  