update/improve-uix #3

Merged
jchomaz merged 9 commits from update/improve-uix into main 2026-02-03 19:56:32 +01:00
Showing only changes of commit f4530e8e50 - Show all commits

View File

@@ -28,7 +28,12 @@ const quizzList = ref([]);
// Fonction pour mettre à jour la liste
const handleMessage = (topic, message) => {
try {
quizzList.value = JSON.parse(message.toString());
const parsed = JSON.parse(message.toString());
if (Array.isArray(parsed)) {
quizzList.value = parsed;
} else {
console.warn('CardCurrentQuizz: Received non-array data', parsed);
}
} catch (error) {
console.error('Erreur de parsing JSON:', error);
}