Skip to content

Commit

Permalink
Issue #SB-19244 fix: prefilling issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav14 committed Jul 13, 2020
1 parent 9929951 commit ca4146a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/faq-report-issue/faq-report-issue.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ export class FaqReportIssuePage implements OnInit, OnDestroy {
};
options.push(value);

if (this.profile && this.profile.medium && this.profile.medium.length
if (!context.dirty && this.profile && this.profile.medium && this.profile.medium.length
&& this.profile.medium[0] === element.code) {
control.patchValue(value.value);
}
Expand Down Expand Up @@ -689,7 +689,7 @@ export class FaqReportIssuePage implements OnInit, OnDestroy {
};
options.push(value);

if (this.profile && this.profile.grade && this.profile.grade.length
if (!context.dirty && this.profile && this.profile.grade && this.profile.grade.length
&& this.profile.grade[0] === element.code) {
control.patchValue(value.value);
}
Expand Down Expand Up @@ -745,7 +745,7 @@ export class FaqReportIssuePage implements OnInit, OnDestroy {
};
options.push(value);

if (this.profile && this.profile.subject && this.profile.subject.length
if (!context.dirty && this.profile && this.profile.subject && this.profile.subject.length
&& this.profile.subject[0] === element.code) {
control.patchValue(value.value);
}
Expand Down

0 comments on commit ca4146a

Please sign in to comment.