Skip to content

Commit

Permalink
Merge pull request #119 from assureclaims/feature/RMA-94395
Browse files Browse the repository at this point in the history
RMA-94395:Cron expression should not retain the last selected 'run im…
  • Loading branch information
assureclaims authored Mar 23, 2022
2 parents 694d32c + 7f57a0d commit 3f7374f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export class DxcCronEditorComponent implements OnInit, OnChanges, ControlValueAc
ngOnChanges(changes: SimpleChanges): void {
if(changes?.cronType?.currentValue !=changes?.cronType?.previousValue)
{
if(this.advancedForm && this.advancedForm.get('subTab') && this.advancedForm.get('subTab').value !=='-1')
if(this.advancedForm && this.advancedForm.get('subTab'))
{
this.advancedForm.get('subTab').setValue(changes?.cronType?.currentValue ? changes?.cronType?.currentValue : 'expression');
this.cron = this.defaultCron;
this.cron = changes?.cronType?.currentValue == -1 ? "-1" : this.defaultCron;
if(this.advancedForm != null && this.advancedForm.value !=null)
{
this.advancedForm.get('expression').setValue(this.cron);
this.advancedForm.get('expression').setValue( this.cron);
this.setDefaultCustomExpression();
}
}
Expand Down

0 comments on commit 3f7374f

Please sign in to comment.