From 5c92c44bd6f24a5a36d98646e7a60b0b34224ddd Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 22 May 2022 18:44:25 -0500 Subject: [PATCH] Properly swtich Character.vue over to PRELOAD_CHARACTER - This was done a while ago, but I just forgot to commit it because I've had a bunch of inactive unstaged changes in Character.vue sitting here for a while. I guess it's time to finally address them, huh? --- src/components/Character.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Character.vue b/src/components/Character.vue index aee8a9e..efdea50 100644 --- a/src/components/Character.vue +++ b/src/components/Character.vue @@ -75,9 +75,12 @@ export default { }) } }, + created() { + this.fetchCharacter(); + }, methods: { fetchCharacter() { - this.$store.dispatch(types.FETCH_CHARACTER, this.$route.params.character) + this.$store.dispatch(types.PRELOAD_CHARACTERS) .then(() => { this.character = this.$store.getters.getCharacter(this.$route.params.character); })