feat: add edit loan product component (#451)
- Update loan product stepper components to support editing - Add edit loan product component - Add pristine property to form dialog Fixes: #439
This commit is contained in:
@@ -8,7 +8,7 @@ export class ChargesFilterPipe implements PipeTransform {
|
||||
transform(charges: any, chargesDataSource: any, currencyCode: string, multiDisburseLoan?: boolean): any {
|
||||
if (charges) {
|
||||
charges = charges.filter((charge: any) => {
|
||||
if ((charge.currency.code !== currencyCode) || (!!multiDisburseLoan && charge.chargeTimeType.id === 12) || chargesDataSource.includes(charge)) {
|
||||
if ((charge.currency.code !== currencyCode) || (!!multiDisburseLoan && charge.chargeTimeType.id === 12) || chargesDataSource.filter((chargeData: any) => chargeData.id === charge.id).length) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user