fm-editor: lint linkedSearchConditions
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 4 Jun 2021 15:52:27 +0000 (11:52 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 4 Jun 2021 15:52:27 +0000 (11:52 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts

index c88be79..010c633 100644 (file)
@@ -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 {