Skip to content

Commit

Permalink
Merge branch 'development' into fix-silently-failing-tests-#6545
Browse files Browse the repository at this point in the history
  • Loading branch information
lexasq authored Jul 5, 2024
2 parents 5459209 + 4a8a35e commit f752f85
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ export class TopMenuComponent implements AfterViewInit {
this.http
.get<{ url: string; version: string; unprefixedUrl: string }[]>('assets/json/versions.json')
.subscribe((data) => {
this.previousDocs.push(data[0]);
this.previousDocs = this.previousDocs.concat(data.reverse()).slice(0, -1);
this.previousDocs = data.sort((versionA, versionB) => {
const versionAsNumberA = Number(versionA.version.split('.').join(''));
const versionAsNumberB = Number(versionB.version.split('.').join(''));
return versionAsNumberB - versionAsNumberA;
});
});

this.http.get<{ version: string }>('assets/json/current-version.json').subscribe((data: { version: string }) => {
Expand Down

0 comments on commit f752f85

Please sign in to comment.