If there is no themes, display all exercices
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
parent
caae846bc7
commit
8bb8cb18e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user