Fix a bug where all bots are considered handled

This commit is contained in:
Travis Ralston 2018-03-23 20:15:59 -06:00
parent 42315de8df
commit 51740308a2

View file

@ -20,7 +20,6 @@ export class AdminEditNebComponent implements OnInit, OnDestroy {
private subscription: any;
private overlappingTypes: string[] = [];
private botTypes: string[] = [];
constructor(private nebApi: AdminNebApiService, private route: ActivatedRoute, private toaster: ToasterService) {
}
@ -70,8 +69,7 @@ export class AdminEditNebComponent implements OnInit, OnDestroy {
this.nebConfig = config;
} else {
for (const type of config.integrations) {
this.botTypes.push(type.type);
handledTypes.push(type.type);
if (type.isEnabled) handledTypes.push(type.type);
}
}
}