mario-education 2.4.253-release → 2.4.254-release

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
@@ -14940,13 +14940,17 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
14940
14940
 
14941
14941
  var _temp8 = _catch(function () {
14942
14942
  return Promise.resolve(getById$2(id)).then(function (res) {
14943
- var _res$data$category, _res$data, _res$data2;
14943
+ var _res$data$category, _res$data, _res$data2, _res$data3;
14944
14944
 
14945
14945
  setQuestionDetail(_extends({}, res.data, {
14946
14946
  categoryId: (_res$data$category = res.data.category) === null || _res$data$category === void 0 ? void 0 : _res$data$category.id,
14947
14947
  isDefaultQuestionTeacher: (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.isDefaultQuestion ? (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.isDefaultQuestionTeacher : null
14948
14948
  }));
14949
14949
  editorRef && editorRef.editor.execCommand("mceSetContent", false, res.data.text);
14950
+
14951
+ if ((_res$data3 = res.data) !== null && _res$data3 !== void 0 && _res$data3.type) {
14952
+ handleGetLabelQuestions(res.data.type);
14953
+ }
14950
14954
  });
14951
14955
  }, function (err) {
14952
14956
  var _err$response2, _err$response2$data;