feat: Add dashboard page displaying a welcome message and recommended courses.
This commit is contained in:
parent
db9ff684ae
commit
af5b3ed266
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ onMounted(async () => {
|
||||||
const catRes = await fetchCategories()
|
const catRes = await fetchCategories()
|
||||||
const catMap = new Map()
|
const catMap = new Map()
|
||||||
if (catRes.success) {
|
if (catRes.success) {
|
||||||
catRes.data.forEach((c: any) => catMap.set(c.id, c.name))
|
catRes.data?.forEach((c: any) => catMap.set(c.id, c.name))
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. Fetch All Courses and Randomize
|
// 2. Fetch All Courses and Randomize
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue