Resolved bug

This commit is contained in:
2025-03-06 13:03:51 +01:00
parent 496174a04f
commit af7328c8fa
3 changed files with 14 additions and 9 deletions

View File

@@ -79,12 +79,14 @@ import { computed, onMounted, reactive, ref } from 'vue';
import { useRouter } from 'vue-router';
import { LoadingStore } from '../../stores/LoadingStore.js';
import { UserPrefStore } from '../../stores/UserPrefStore.js';
import { ScenarioStore } from '../../stores/ScenarioStore.js';
const loadingStore = LoadingStore()
const userPrefStore = UserPrefStore();
const auth = useAuth();
const user = computed(() => auth.user());
const scenario_store = ScenarioStore();
const router = useRouter()
@@ -122,6 +124,7 @@ const user = computed(() => auth.user());
const openProject = async (project) => {
try {
// Esegui l'update del progetto
scenario_store.resetStore();
await userPrefStore.updateSelectedProject(project);
console.log('Progetto aggiornato e dati utente ricaricati');