mario-teacher-student-client 2.1.62-beta → 2.1.63-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8935,7 +8935,7 @@ var useConductOne = function useConductOne() {
8935
8935
  assistantId: (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : (_res$data9$teacherRes = _res$data9.teacherResult) === null || _res$data9$teacherRes === void 0 ? void 0 : _res$data9$teacherRes.assistantId
8936
8936
  };
8937
8937
 
8938
- if (isStudent) {
8938
+ if (isStudent || !body.assistantId) {
8939
8939
  setIsUserChangeSession(true);
8940
8940
  } else {
8941
8941
  if (!!body.assistantId && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.assistantId) == body.assistantId) {
@@ -11736,6 +11736,8 @@ var ConductIndex = function ConductIndex() {
11736
11736
  updateQuestionAnswer(questionId, value);
11737
11737
  };
11738
11738
 
11739
+ console.log("run session");
11740
+
11739
11741
  var onChangeSessionCategory = function onChangeSessionCategory(event) {
11740
11742
  var value = event.target.value;
11741
11743
  setLearningSupportCategoryId(parseInt(value));
@@ -36600,7 +36602,7 @@ var useConferenceRubric = function useConferenceRubric() {
36600
36602
  studentResultId: res.data.studentResultId
36601
36603
  };
36602
36604
 
36603
- if (isStudent) {
36605
+ if (isStudent || !body.assistantId) {
36604
36606
  setIsUserChangeConference(true);
36605
36607
  } else {
36606
36608
  if (!!body.assistantId && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.assistantId) == body.assistantId) {
@@ -37047,6 +37049,7 @@ var ConferenceRubric = function ConferenceRubric() {
37047
37049
  onChangeToogleAfterSession();
37048
37050
  };
37049
37051
 
37052
+ console.log("run conference");
37050
37053
  var listLearningStrategory = React.useMemo(function () {
37051
37054
  return listQuestionConferenceAnswer.filter(function (item) {
37052
37055
  return item.type == QuestionType$1.LearningStrategy;
@@ -54262,19 +54265,19 @@ var useAddClassReflection = function useAddClassReflection() {
54262
54265
  rowNewClassReflection[findIndex].classDateTime = timeClassDate;
54263
54266
  rowNewClassReflection[findIndex].classDate = moment(timeClassDate).valueOf();
54264
54267
 
54265
- if (!rowNewClassReflection[findIndex].teacherEmail) {
54268
+ if (!rowNewClassReflection[findIndex].teacherEmail && classTypeItem.teacherEmail) {
54266
54269
  rowNewClassReflection[findIndex].teacherEmail = classTypeItem.teacherEmail;
54267
54270
  }
54268
54271
 
54269
- if (!rowNewClassReflection[findIndex].teacherName) {
54272
+ if (!rowNewClassReflection[findIndex].teacherName && classTypeItem.teacherName) {
54270
54273
  rowNewClassReflection[findIndex].teacherName = classTypeItem.teacherName;
54271
54274
  }
54272
54275
 
54273
- if (!rowNewClassReflection[findIndex].TeacherImage) {
54276
+ if (!rowNewClassReflection[findIndex].TeacherImage && classTypeItem !== null && classTypeItem !== void 0 && classTypeItem.teacherAvatar) {
54274
54277
  rowNewClassReflection[findIndex].TeacherImage = classTypeItem === null || classTypeItem === void 0 ? void 0 : classTypeItem.teacherAvatar;
54275
54278
  }
54276
54279
 
54277
- if (!rowNewClassReflection[findIndex].bandScore) {
54280
+ if (!rowNewClassReflection[findIndex].bandScore && classTypeItem !== null && classTypeItem !== void 0 && classTypeItem.gradeScore) {
54278
54281
  rowNewClassReflection[findIndex].bandScore = classTypeItem === null || classTypeItem === void 0 ? void 0 : classTypeItem.gradeScore;
54279
54282
  }
54280
54283
  }
@@ -54525,7 +54528,7 @@ var AddClassReflection = function AddClassReflection() {
54525
54528
  options: listClassType,
54526
54529
  freeSolo: true,
54527
54530
  autoHighlight: true,
54528
- popupIcon: React__default.createElement(ArrowDropDownIcon, null),
54531
+ forcePopupIcon: true,
54529
54532
  value: checkStudent(row.classType),
54530
54533
  getOptionLabel: function getOptionLabel(option) {
54531
54534
  return option;