From 21386010fb7fae88b28690fd2effa31985ce59e6 Mon Sep 17 00:00:00 2001 From: Phan An Date: Sun, 21 Jan 2018 21:18:04 +0100 Subject: [PATCH] Make tests pass simply --- .../assets/js/components/main-wrapper/main-content/album.vue | 2 +- .../assets/js/components/main-wrapper/main-content/artist.vue | 2 +- .../assets/js/components/main-wrapper/main-content/playlist.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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()) } } }