Make tests pass simply

This commit is contained in:
Phan An 2018-01-21 21:18:04 +01:00
parent aa19a16bcd
commit 21386010fb
3 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ export default {
this.info.showing = false this.info.showing = false
this.album = album this.album = album
// #530 // #530
this.$nextTick(() => this.$refs.songList.sort()) this.$nextTick(() => this.$refs.songList && this.$refs.songList.sort())
} }
}) })
}, },

View file

@ -102,7 +102,7 @@ export default {
this.info.showing = false this.info.showing = false
this.artist = artist this.artist = artist
// #530 // #530
this.$nextTick(() => this.$refs.songList.sort()) this.$nextTick(() => this.$refs.songList && this.$refs.songList.sort())
} }
}) })
}, },

View file

@ -137,7 +137,7 @@ export default {
await playlistStore.fetchSongs(playlist) await playlistStore.fetchSongs(playlist)
playlist.populated = true playlist.populated = true
this.playlist = playlist this.playlist = playlist
this.$nextTick(() => this.$refs.songList.sort()) this.$nextTick(() => this.$refs.songList && this.$refs.songList.sort())
} }
} }
} }