From: Galen Charlton Date: Fri, 4 Jun 2021 15:52:27 +0000 (-0400) Subject: fm-editor: lint linkedSearchConditions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e134e5c56a53e1c00eb7e6bd4b4998357724365b;p=working%2FEvergreen.git fm-editor: lint linkedSearchConditions Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts index c88be79765..010c6332a1 100644 --- a/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts +++ b/Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts @@ -60,7 +60,7 @@ export interface FmFieldOptions { // Additional search conditions to include when constructing // the query for a linked field's combobox - linkedSearchConditions?: {[field: string] : string}; + linkedSearchConditions?: {[field: string]: string}; // Directly override the required state of the field. // This only has an affect if the value is true. @@ -615,11 +615,11 @@ export class FmRecordEditorComponent }); // ensure that the current value, if present, is included // in case it doesn't otherwise meet the conditions - const linkVal = this.record[field.name](); - if (linkVal !== null && linkVal !== undefined) { + const linkedValue = this.record[field.name](); + if (linkedValue !== null && linkedValue !== undefined) { search['-or'] = []; const retrieveRec = {}; - retrieveRec[idField] = linkVal; + retrieveRec[idField] = linkedValue; search['-or'].push(retrieveRec); search['-or'].push(conditions); } else {