Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Sep 24, 2024
1 parent 6e9009c commit e6b6b08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/manager-dashboard/manager-aiservices.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { StateService } from '../shared/state.service';

@Component({
templateUrl: './manager-aiservices.component.html',
styleUrls: ['./manager-aiservices.component.scss'],
styleUrls: [ './manager-aiservices.component.scss' ],
})
export class ManagerAIServicesComponent implements OnInit {
configuration: any = {};
Expand Down Expand Up @@ -46,8 +46,8 @@ export class ManagerAIServicesComponent implements OnInit {
this.configForm = this.fb.group({
...this.mapConfigToFormGroup(this.configuration.keys, 'keys_'),
...this.mapConfigToFormGroup(this.configuration.models, 'models_'),
assistantName: [this.configuration.assistant?.name || ''],
assistantInstructions: [this.configuration.assistant?.instructions || '']
assistantName: [ this.configuration.assistant?.name || '' ],
assistantInstructions: [ this.configuration.assistant?.instructions || '' ]
});

if (this.configuration.keys) {
Expand All @@ -62,7 +62,7 @@ export class ManagerAIServicesComponent implements OnInit {
const formGroupObj = {};
if (configObject) {
for (const key of Object.keys(configObject)) {
formGroupObj[prefix + key] = [configObject[key] || ''];
formGroupObj[prefix + key] = [ configObject[key] || '' ];
}
}
return formGroupObj;
Expand All @@ -74,7 +74,7 @@ export class ManagerAIServicesComponent implements OnInit {

saveConfig() {
const spinnerOff = () => this.spinnerOn = false;
if (!this.configForm.valid){
if (!this.configForm.valid) {
spinnerOff();
return;
}
Expand Down

0 comments on commit e6b6b08

Please sign in to comment.