Store lists as Sets

This commit is contained in:
Sam Carlton 2021-01-22 23:14:44 -06:00
parent c7d39dd9f2
commit 1f5f47eab4
10 changed files with 30 additions and 38 deletions

View file

@ -82,7 +82,7 @@ export default {
const app = appList.find(app => (app.slug === slug))
const relatedVideos = videosRelatedToApp( app, videoList )
const relatedVideos = videosRelatedToApp( app, (new Set(videoList)) )
// Find other videos that also feature this video's app
// for (const video of videoList) {

View file

@ -119,7 +119,7 @@ export default {
const app = gameList.find(app => (app.slug === slug))
const relatedVideos = videosRelatedToApp( app, videoList )
const relatedVideos = videosRelatedToApp( app, (new Set(videoList)) )
// Find other videos that also feature this video's app
// for (const video of videoList) {

View file

@ -51,7 +51,7 @@ export default {
text: app.text,
lastUpdated: app.lastUpdated,
category: app.category,
searchLinks: makeAppSearchLinks( app, videoList )
searchLinks: makeAppSearchLinks( app, (new Set(videoList)) )
}
})
}

View file

@ -80,7 +80,7 @@ export default {
allVideoAppsList.forEach( app => {
// Make the search links
const searchLinks = makeAppSearchLinks( app, videoList )
const searchLinks = makeAppSearchLinks( app, (new Set(videoList)) )
// If there are more than zero
// add them to our list

View file

@ -78,7 +78,7 @@ export default {
text: app.text,
lastUpdated: app.lastUpdated,
category: app.category,
searchLinks: makeAppSearchLinks( app, videoList )
searchLinks: makeAppSearchLinks( app, (new Set(videoList)) )
}
})
}