Project

General

Profile

« Previous | Next » 

Revision 51581

fixed checking if at least one interface was saved

View differences:

sources-update-repo.component.ts
75 75
    this.group = this.fb.group({});
76 76
    this.repoService.getRepositoryInterface(this.repoId).subscribe(
77 77
      interfaces => {
78
        this.repoInterfaces = interfaces;
78
        this.repoInterfaces = interfaces.sort( function(a,b) {
79
          if(a.id<b.id){
80
            return -1;
81
          } else if(a.id>b.id){
82
            return 1;
83
          } else {
84
            return 0;
85
          }
86
        });
79 87
        console.log(`the number of interfaces for ${this.repoId} is ${this.repoInterfaces.length}`);
80 88
      },
81 89
      error => {

Also available in: Unified diff