diff --git a/resources/assets/js/components/main-wrapper/main-content/album.vue b/resources/assets/js/components/main-wrapper/main-content/album.vue index 5f9a4a3f0b..778e069b18 100644 --- a/resources/assets/js/components/main-wrapper/main-content/album.vue +++ b/resources/assets/js/components/main-wrapper/main-content/album.vue @@ -108,7 +108,7 @@ export default { this.info.showing = false this.album = album // #530 - this.$nextTick(() => this.$refs.songList.sort()) + this.$nextTick(() => this.$refs.songList && this.$refs.songList.sort()) } }) }, diff --git a/resources/assets/js/components/main-wrapper/main-content/artist.vue b/resources/assets/js/components/main-wrapper/main-content/artist.vue index 90cfd70372..ba7623a67a 100644 --- a/resources/assets/js/components/main-wrapper/main-content/artist.vue +++ b/resources/assets/js/components/main-wrapper/main-content/artist.vue @@ -102,7 +102,7 @@ export default { this.info.showing = false this.artist = artist // #530 - this.$nextTick(() => this.$refs.songList.sort()) + this.$nextTick(() => this.$refs.songList && this.$refs.songList.sort()) } }) }, diff --git a/resources/assets/js/components/main-wrapper/main-content/playlist.vue b/resources/assets/js/components/main-wrapper/main-content/playlist.vue index 7709e7e933..595bd98d8a 100644 --- a/resources/assets/js/components/main-wrapper/main-content/playlist.vue +++ b/resources/assets/js/components/main-wrapper/main-content/playlist.vue @@ -137,7 +137,7 @@ export default { await playlistStore.fetchSongs(playlist) playlist.populated = true this.playlist = playlist - this.$nextTick(() => this.$refs.songList.sort()) + this.$nextTick(() => this.$refs.songList && this.$refs.songList.sort()) } } }