fix fetching SavingsAccountTemplate when groupId present (#2381)
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ export class SavingsAccountDetailsStepComponent implements OnInit {
|
|||||||
* Fetches savings account product template on productId value changes
|
* Fetches savings account product template on productId value changes
|
||||||
*/
|
*/
|
||||||
buildDependencies() {
|
buildDependencies() {
|
||||||
const entityId = this.savingsAccountTemplate.clientId || this.savingsAccountTemplate.groupId;
|
const entityId = this.savingsAccountTemplate.groupId || this.savingsAccountTemplate.clientId;
|
||||||
this.savingsAccountDetailsForm.get('productId').valueChanges.subscribe((productId: string) => {
|
this.savingsAccountDetailsForm.get('productId').valueChanges.subscribe((productId: string) => {
|
||||||
this.savingsService
|
this.savingsService
|
||||||
.getSavingsAccountTemplate(entityId, productId, this.savingsAccountTemplate.groupId ? true : false)
|
.getSavingsAccountTemplate(entityId, productId, this.savingsAccountTemplate.groupId ? true : false)
|
||||||
|
|||||||
Reference in New Issue
Block a user