+
+
{$t('course.navItem.lessons.materials.no_translation')}
-
+
{/if}
diff --git a/apps/dashboard/src/lib/components/Org/LandingPage/index.svelte b/apps/dashboard/src/lib/components/Org/LandingPage/index.svelte
index a1e06bc7..2d2aad40 100644
--- a/apps/dashboard/src/lib/components/Org/LandingPage/index.svelte
+++ b/apps/dashboard/src/lib/components/Org/LandingPage/index.svelte
@@ -109,18 +109,22 @@
return youtubeRegex.test(link.trim());
}
- onMount(async () => {
- if (!orgSiteName) return;
+ $: loadData(orgSiteName);
+
+ async function loadData(siteName) {
+ if (!siteName) return;
+
try {
- console.log('sitename', orgSiteName);
+ console.log('sitename', siteName);
$courseMetaDeta.isLoading = true;
- const coursesResult = await getCourseBySiteName(orgSiteName);
+ const coursesResult = await getCourseBySiteName(siteName);
courses.set(coursesResult);
$courseMetaDeta.isLoading = false;
} catch (error) {
console.log('error', error);
}
- });
+ }
+
function initPlyr(_player: any, _video: string | undefined) {
if (!player) return;
@@ -162,7 +166,13 @@
{#if $landingPageSettings.header.show}