mario-education 2.4.493-feedback → 2.4.494-feedback
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20078,14 +20078,11 @@ var useQuestionSurveyList = function useQuestionSurveyList(isDefaultQuestion, is
|
|
|
20078
20078
|
};
|
|
20079
20079
|
|
|
20080
20080
|
var setDataToGrid = React.useCallback(function () {
|
|
20081
|
-
var _gridRef$current, _gridRef$current$api;
|
|
20082
|
-
|
|
20083
20081
|
gridRef && gridRef.current && gridRef.current.setRowData((questionList === null || questionList === void 0 ? void 0 : questionList.map(function (r) {
|
|
20084
20082
|
return _extends({}, r, {
|
|
20085
20083
|
isChecked: questionSelected.questionCheckedIds.includes(r.id)
|
|
20086
20084
|
});
|
|
20087
20085
|
})) || []);
|
|
20088
|
-
(_gridRef$current = gridRef.current) === null || _gridRef$current === void 0 ? void 0 : (_gridRef$current$api = _gridRef$current.api) === null || _gridRef$current$api === void 0 ? void 0 : _gridRef$current$api.refreshHeader();
|
|
20089
20086
|
}, [gridRef, questionList, questionSelected]);
|
|
20090
20087
|
var classFontSize = React.useMemo(function () {
|
|
20091
20088
|
if (defaultFont == defaultFontLarge) {
|
|
@@ -20254,6 +20251,8 @@ var useQuestionSurveyList = function useQuestionSurveyList(isDefaultQuestion, is
|
|
|
20254
20251
|
}
|
|
20255
20252
|
|
|
20256
20253
|
return Promise.resolve(getQuestionIds(filters)).then(function (res) {
|
|
20254
|
+
var _gridRef$current;
|
|
20255
|
+
|
|
20257
20256
|
setQuestionSelected(function (prevSelected) {
|
|
20258
20257
|
return {
|
|
20259
20258
|
questionIds: (res === null || res === void 0 ? void 0 : res.data) || [],
|
|
@@ -20262,6 +20261,7 @@ var useQuestionSurveyList = function useQuestionSurveyList(isDefaultQuestion, is
|
|
|
20262
20261
|
categoryId: filters.categoryId
|
|
20263
20262
|
};
|
|
20264
20263
|
});
|
|
20264
|
+
gridRef === null || gridRef === void 0 ? void 0 : (_gridRef$current = gridRef.current) === null || _gridRef$current === void 0 ? void 0 : _gridRef$current.refreshHeader();
|
|
20265
20265
|
});
|
|
20266
20266
|
}, function (err) {
|
|
20267
20267
|
var _err$response2, _err$response2$data;
|