mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Skip empty app/game benchmark pages
This commit is contained in:
parent
9ee920d4f3
commit
5cded8a522
1 changed files with 9 additions and 4 deletions
|
|
@ -241,10 +241,15 @@ class BuildLists {
|
|||
|
||||
// Add benchmark endpoints for apps and games
|
||||
if ( appType === 'app' || appType === 'game' ) {
|
||||
this.endpointSets.nuxt.add({
|
||||
route: `${getAppEndpoint(app)}/benchmarks`,
|
||||
payload: buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
|
||||
})
|
||||
const payload = buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
|
||||
|
||||
// Only add a benchmarks endpoint if it has any videos
|
||||
if ( payload.allVideos.length > 0 ) {
|
||||
this.endpointSets.nuxt.add({
|
||||
route: `${getAppEndpoint(app)}/benchmarks`,
|
||||
payload: buildAppBenchmarkPayload( app, this.allVideoAppsList, this.lists.video )
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Add app or game endpoint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue