Added various conditions to prevent errors and warnings.
This commit is contained in:
@@ -167,6 +167,7 @@ export default {
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
emits: ['load'],
|
||||
data() {
|
||||
return {
|
||||
player: null,
|
||||
|
||||
@@ -218,7 +218,9 @@ async function fetchRelease() {
|
||||
this.release = await this.$store.dispatch('fetchMovieById', this.$route.params.releaseId);
|
||||
}
|
||||
|
||||
this.$refs.content.scrollTop = 0;
|
||||
if (this.$refs.content) {
|
||||
this.$refs.content.scrollTop = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function bannerBackground() {
|
||||
|
||||
Reference in New Issue
Block a user