File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/platform-ui/src/components/Classrooms Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div v-if =" !updatePending" >
3- <h1 ><router-link to =" /classrooms" >My Classrooms</router-link > / {{ classroomCfg.name }}</h1 >
3+ <h1 ><router-link to =" /classrooms" >My Classrooms</router-link > / {{ classroomCfg! .name }}</h1 >
44
55 <h3 >
6- Join code: {{ classroomCfg.joinCode }}
6+ Join code: {{ classroomCfg! .joinCode }}
77 <router-link :to =" `/classrooms/${classroomId}/code`" >
88 <v-btn size =" x-small" icon =" mdi-fullscreen" color =" accent" alt =" Make Fullscreen" > </v-btn >
99 </router-link >
1010 </h3 >
1111 <v-row >
1212 <v-col cols =" 12" sm =" 6" md =" 4" >
13- <v-checkbox v-model =" classroomCfg.peerAssist" label =" Allow peer instruction" :model-value = " true " ></v-checkbox >
13+ <v-checkbox v-model =" classroomCfg! .peerAssist" label =" Allow peer instruction" ></v-checkbox >
1414 </v-col >
1515 <v-col v-if =" classroomDB" cols =" 12" >
1616 <h2 >Assigned Content:</h2 >
@@ -148,8 +148,7 @@ export default defineComponent({
148148 console .log (` [ClassroomCtrlPanel] Config: ${JSON .stringify (this .classroomCfg )} ` );
149149
150150 // Get course list from data layer
151- const courseResponse = await getDataLayer ().getCoursesDB ().getCourseList ();
152- this .availableCourses = courseResponse .rows .map ((r ) => r .doc ! );
151+ this .availableCourses = await getDataLayer ().getCoursesDB ().getCourseList ();
153152
154153 this .updatePending = false ;
155154 } catch (error ) {
You can’t perform that action at this time.
0 commit comments