Need to fetch the profile before checking the hash

This commit is contained in:
Johannes Zellner
2025-03-25 11:21:38 +01:00
parent e312c3147a
commit 1f8cdbaf62
+3 -3
View File
@@ -171,13 +171,13 @@ onMounted(async () => {
return;
}
window.addEventListener('hashchange', onHashChange);
onHashChange();
let [error, result] = await profileModel.get();
if (error) return console.error(error);
profile.value = result;
window.addEventListener('hashchange', onHashChange);
onHashChange();
[error, result] = await dashboardModel.config();
if (error) return console.error(error);
config.value = result;