From fd3ab1c582ae898cfa1de5794793bbcb37193622 Mon Sep 17 00:00:00 2001 From: "alejandro.bulgaris@qcif.edu.au" Date: Wed, 18 Oct 2023 00:12:52 +0000 Subject: [PATCH] Change name of property fields in MintLookupDataService to avoid skip clone --- angular-legacy/shared/form/field-vocab.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angular-legacy/shared/form/field-vocab.component.ts b/angular-legacy/shared/form/field-vocab.component.ts index a12b5253b1..a05a7a4cda 100644 --- a/angular-legacy/shared/form/field-vocab.component.ts +++ b/angular-legacy/shared/form/field-vocab.component.ts @@ -494,7 +494,7 @@ class MintLookupDataService extends Subject implements Complete constructor(private url: string, private http: Http, - private fields: string[], + private lookupResponseFields: string[], private compositeTitleName: string, private titleFieldArr: string[], private titleFieldDelim: any[], @@ -532,7 +532,7 @@ class MintLookupDataService extends Subject implements Complete return null; } const item: any = {}; - _.forEach(this.fields, (fieldName) => { + _.forEach(this.lookupResponseFields, (fieldName) => { if (_.isString(fieldName)) { item[fieldName] = data[fieldName]; } else {