Skip to content

Commit

Permalink
remove default package on new agent
Browse files Browse the repository at this point in the history
  • Loading branch information
skadefro committed Aug 14, 2023
1 parent f6a1cdb commit 9b40878
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions OpenFlow/src/public/Controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8002,10 +8002,10 @@ export class AgentCtrl extends entityCtrl<any> {
console.log("filtered again", this.packages)
}
if (this.model._id == null || this.model._id == "") {
this.model.package = "";
if ((this.model.package == null || this.model.package == "") && this.packages.length > 0) {
this.model.package = this.packages[0]._id;
}
// this.model.package = "";
// if ((this.model.package == null || this.model.package == "") && this.packages.length > 0) {
// this.model.package = this.packages[0]._id;
// }
}
this.packages.unshift({ _id: "", name: "None" })
}
Expand Down Expand Up @@ -8663,12 +8663,12 @@ export class RunPackageCtrl extends entityCtrl<Base> {
this.packages = this.packages.filter(x => x.chrome != true && x.chromium != true)
console.log("filtered again", this.packages)
}
if(this.packages.find(x => x._id == this.package) == null) {
this.package = "";
}
if(this.package == "" && this.packages.length > 0) {
this.package = this.packages[0]._id;
}
// if(this.packages.find(x => x._id == this.package) == null) {
// this.package = "";
// }
// if(this.package == "" && this.packages.length > 0) {
// this.package = this.packages[0]._id;
// }
if (!this.$scope.$$phase) { this.$scope.$apply(); }
}
async addprocess(streamid:string, schedulename:string = undefined): Promise<void> {
Expand Down

0 comments on commit 9b40878

Please sign in to comment.