From cb2bc0dc7acd518bb5fb0f1d4cf09e15d360453d Mon Sep 17 00:00:00 2001
From: Jan <sentrycraft123@gmail.com>
Date: Mon, 9 Oct 2023 15:11:15 +0200
Subject: fix: Refetch profiles when opening SettingsView (#498)

Refetches profiles every time we open the SettingsView. Removes superfluous profile fetch on application launch.
---
 src-vue/src/views/SettingsView.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src-vue/src/views/SettingsView.vue')

diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue
index 88a5d588..0baf9517 100644
--- a/src-vue/src/views/SettingsView.vue
+++ b/src-vue/src/views/SettingsView.vue
@@ -260,6 +260,7 @@ export default defineComponent({
     },
     mounted() {
         document.querySelector('input')!.disabled = true;
+        this.$store.commit('fetchProfiles');
     },
     unmounted() {
         if (('' + this.modsPerPage) === '') {
-- 
cgit v1.2.3

