]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix latest live sessions order
authorChocobozzz <me@florianbigard.com>
Fri, 24 Jun 2022 07:53:03 +0000 (09:53 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 24 Jun 2022 07:57:55 +0000 (09:57 +0200)
client/src/app/shared/shared-video-live/live-stream-information.component.ts

index 1cf6f852844d0388da7dcc1e28be513bb2c3ac2c..c60f7fe2f2e7de6279160dad4a8d75e2c9231162 100644 (file)
@@ -54,6 +54,6 @@ export class LiveStreamInformationComponent {
       .subscribe(live => this.live = live)
 
     this.liveVideoService.listSessions(video.id)
-      .subscribe(({ data }) => this.latestLiveSessions = data.slice(0, 5))
+      .subscribe(({ data }) => this.latestLiveSessions = data.reverse().slice(0, 5))
   }
 }