Fix Characters.vue not detecting state change, fix SeasonList.vue breaking with new preload schema

- Rename to PRELOAD_CHARACTERS from FETCH_CHARACTERS
This commit is contained in:
Xevion
2022-05-21 12:35:15 -05:00
parent 56835a27f5
commit a2c55ed029
4 changed files with 47 additions and 33 deletions

View File

@@ -60,11 +60,11 @@ export default {
},
// if SeasonList episode data (titles/descriptions) is loaded and ready
isPreloaded() {
return this.$store.state.preloaded;
return this.$store.getters.checkPreloaded('episodes');
}
},
created() {
this.$store.dispatch(types.PRELOAD)
this.$store.dispatch(types.PRELOAD_EPISODES)
},
methods: {},
};