Skip to content

Commit

Permalink
Issue #SB-19244 merge: Merge pull request #1068 from raghav14/release…
Browse files Browse the repository at this point in the history
…-3.0.1

Issue #SB-19244 fix: prefilling issue fixed
  • Loading branch information
swayangjit authored Jul 13, 2020
2 parents 9929951 + ca4146a commit 6534b2b
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 6534b2b

Please sign in to comment.