Skip to content

Commit

Permalink
use .value to access reactive value of the classId
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOXDi committed Jan 9, 2025
1 parent 2fc8b7c commit 34a398e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<script>
import { computed, onBeforeMount, onBeforeUnmount } from 'vue';
import { get } from '@vueuse/core';
import KBreadcrumbs from 'kolibri-design-system/lib/KBreadcrumbs';
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings';
Expand Down Expand Up @@ -62,10 +61,9 @@
const classId = computed(() => props.classId);
const classroom = computed(() => getClass(classId.value));
const className = computed(() => (get(classroom) ? get(classroom).name : ''));
const activeLessons = computed(() => getClassActiveLessons(get(classId.value)));
const activeQuizzes = computed(() => getClassActiveQuizzes(get(classId.value)));
const className = computed(() => (classroom.value ? classroom.value.name : ''));
const activeLessons = computed(() => getClassActiveLessons(classId.value));
const activeQuizzes = computed(() => getClassActiveQuizzes(classId.value));
let pollTimeoutId;
function schedulePoll() {
Expand Down

0 comments on commit 34a398e

Please sign in to comment.