ali před 2 roky
rodič
revize
7e53e62c6a

+ 1 - 1
src/components/Widgets/Classroom/AdminClassroomShow/components/ClassroomInfo.vue

@@ -252,7 +252,7 @@ export default {
     },
     beforeLoadInputData (responseData, callback) {
       return new Promise((resolve, reject) => {
-        const selectedCategoryId = responseData.unit_info.category || null
+        const selectedCategoryId = responseData.unit_info.category_info.id || null
         const promise1 = this.getProfessors()
         const promise2 = this.getCategories()
         const promise3 = this.getUnits(selectedCategoryId, this.classroomType)