mario-education 2.4.471-release → 2.4.473-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 +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16341,7 +16341,7 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
16341
16341
|
lang: lang
|
|
16342
16342
|
};
|
|
16343
16343
|
return Promise.resolve(getById$2(id, objLang)).then(function (res) {
|
|
16344
|
-
var _res$data$category, _res$data, _res$data2, _res$data3;
|
|
16344
|
+
var _res$data$category, _res$data, _res$data2, _res$data3, _res$data4;
|
|
16345
16345
|
|
|
16346
16346
|
var objNew = _extends({}, res.data, {
|
|
16347
16347
|
categoryId: (_res$data$category = res.data.category) === null || _res$data$category === void 0 ? void 0 : _res$data$category.id,
|
|
@@ -16349,12 +16349,10 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
16349
16349
|
});
|
|
16350
16350
|
|
|
16351
16351
|
setQuestionDetail(objNew);
|
|
16352
|
-
|
|
16353
|
-
objNew: objNew
|
|
16354
|
-
});
|
|
16352
|
+
setActiveType((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.type);
|
|
16355
16353
|
editorRef && editorRef.editor.execCommand("mceSetContent", false, objNew.text);
|
|
16356
16354
|
|
|
16357
|
-
if ((_res$
|
|
16355
|
+
if ((_res$data4 = res.data) !== null && _res$data4 !== void 0 && _res$data4.type) {
|
|
16358
16356
|
handleGetLabelQuestions(res.data.type);
|
|
16359
16357
|
}
|
|
16360
16358
|
});
|