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 5f9a4a3f..778e069b 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 90cfd703..ba7623a6 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 7709e7e9..595bd98d 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()) } } }