If there is no themes, display all exercices
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
nemunaire 2024-09-13 12:05:30 +02:00
parent caae846bc7
commit 8bb8cb18e3

View File

@ -35,6 +35,7 @@
}
if ($themesStore["0"] && !$themesStore["0"].locked && $themesStore["0"].exercices) {
if (tmpitems.length) {
let nb_ex_max = tmpitems.length;
let i = 1;
let j = 0;
@ -63,6 +64,11 @@
color: "light",
});
}
} else {
for (const j in $themesStore["0"].exercices) {
tmpitems.push({id: tmpitems.length, theme: $themesStore["0"], exercice: $themesStore["0"].exercices[j]});
}
}
}
items = tmpitems;