diff --git a/src/renderer/components/side-nav/side-nav.js b/src/renderer/components/side-nav/side-nav.js index 31709f2584df0..967b6b5e9cfd7 100644 --- a/src/renderer/components/side-nav/side-nav.js +++ b/src/renderer/components/side-nav/side-nav.js @@ -29,8 +29,9 @@ export default defineComponent({ return this.$store.getters.getActiveProfile }, activeSubscriptions: function () { - const profile = JSON.parse(JSON.stringify(this.activeProfile)) - return profile.subscriptions.sort((a, b) => { + const subscriptions = JSON.parse(JSON.stringify(this.activeProfile.subscriptions)) + + subscriptions.sort((a, b) => { const nameA = a.name.toLowerCase() const nameB = b.name.toLowerCase() if (nameA < nameB) { @@ -40,13 +41,15 @@ export default defineComponent({ return 1 } return 0 - }).map((channel) => { - if (this.backendPreference === 'invidious') { + }) + + if (this.backendPreference === 'invidious') { + subscriptions.forEach((channel) => { channel.thumbnail = youtubeImageUrlToInvidious(channel.thumbnail, this.currentInvidiousInstance) - } + }) + } - return channel - }) + return subscriptions }, hidePopularVideos: function () { return this.$store.getters.getHidePopularVideos