fm-edit lint
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 2 Sep 2020 16:49:12 +0000 (12:49 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 2 Sep 2020 17:09:39 +0000 (13:09 -0400)
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts

index b9bdae7..4b6ee5e 100644 (file)
@@ -144,7 +144,7 @@ export class FmRecordEditorComponent
     @Input() hideBanner: boolean;
 
     // do not close dialog on error saving record
-    @Input() remainOpenOnError: boolean = false;
+    @Input() remainOpenOnError: false;
 
     // Emit the modified object when the save action completes.
     @Output() recordSaved = new EventEmitter<IdlObject>();
@@ -431,8 +431,9 @@ export class FmRecordEditorComponent
             || this.idl.getClassSelector(class_) || idField;
 
         return list.map(item => {
-            if (item !== undefined)
+            if (item !== undefined) {
                 return {id: item[idField](), label: item[selector]()};
+            }
         });
     }