Skip to content
Snippets Groups Projects
Commit 37fd88c5 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

chore: simplify loops

parent 831e6fce
No related branches found
No related tags found
No related merge requests found
......@@ -337,9 +337,9 @@ export default {
// of access rights, then we would need to load all predecessors show after
// loading our initial shows as well.
predecessorName: function () {
for (let i in this.shows) {
if (this.shows[i].id === this.selectedShow.predecessor) {
return this.shows[i].name
for (const show of this.shows) {
if (show.id === this.selectedShow.predecessor) {
return show.name
}
}
return this.$t('showMeta.noPredecessorName')
......@@ -348,8 +348,8 @@ export default {
predecessorSelector: function () {
let options = []
options.push({ value: null, text: this.$t('showMeta.noPredecessor') })
for (let i in this.shows) {
options.push({ value: this.shows[i].id, text: this.shows[i].name })
for (const show of this.shows) {
options.push({ value: show.id, text: show.name })
}
return options
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment