]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove country limit of 10 items
authorChocobozzz <me@florianbigard.com>
Thu, 1 Dec 2022 08:09:20 +0000 (09:09 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 1 Dec 2022 08:09:20 +0000 (09:09 +0100)
client/src/app/+stats/video/video-stats.component.ts

index bfad4f8236ee4dafa10fc2e9219bbca12342b33b..18312ec333ca4a050e2621c3e76e30a643049d5c 100644 (file)
@@ -175,7 +175,7 @@ export class VideoStatsComponent implements OnInit {
     this.statsService.getOverallStats({ videoId: this.video.uuid, startDate: this.statsStartDate, endDate: this.statsEndDate })
       .subscribe({
         next: res => {
-          this.countries = res.countries.slice(0, 10).map(c => ({
+          this.countries = res.countries.map(c => ({
             name: this.countryCodeToName(c.isoCode),
             viewers: c.viewers
           }))