chore(ui): clear eslint expression cleanup bucket
Replace remaining side-effect ternaries with explicit control flow and drop unused error bindings so the affected editors and readers satisfy the current TypeScript lint rules. Validation: just ui lint
This commit is contained in:
+5
-1
@@ -88,7 +88,11 @@ export class AuthorEditorComponent implements OnInit, OnChanges {
|
||||
|
||||
const fieldControl = this.form.get(field);
|
||||
if (fieldControl) {
|
||||
isLocked ? fieldControl.disable() : fieldControl.enable();
|
||||
if (isLocked) {
|
||||
fieldControl.disable();
|
||||
} else {
|
||||
fieldControl.enable();
|
||||
}
|
||||
}
|
||||
|
||||
this.saveMetadata();
|
||||
|
||||
Reference in New Issue
Block a user