mario-education 2.4.499-feedback → 2.4.500-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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68027,6 +68027,11 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
68027
68027
|
openModelConfirmPublish = _useState12[0],
|
|
68028
68028
|
setOpenModelConfirmPublish = _useState12[1];
|
|
68029
68029
|
|
|
68030
|
+
var role = reactRedux.useSelector(function (state) {
|
|
68031
|
+
var _state$common, _state$common$user;
|
|
68032
|
+
|
|
68033
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : (_state$common$user = _state$common.user) === null || _state$common$user === void 0 ? void 0 : _state$common$user.roles;
|
|
68034
|
+
});
|
|
68030
68035
|
var inputSearch = React.useRef(null);
|
|
68031
68036
|
|
|
68032
68037
|
var changeFilters = function changeFilters(updatedFilters) {
|
|
@@ -68227,7 +68232,8 @@ var useListSurveyDetail = function useListSurveyDetail() {
|
|
|
68227
68232
|
templateQuestions: dataFormCreateSurvey.templateQuestions.filter(function (r) {
|
|
68228
68233
|
return r.questionTemplates.length > 0;
|
|
68229
68234
|
}),
|
|
68230
|
-
isAdmin: true
|
|
68235
|
+
isAdmin: true,
|
|
68236
|
+
role: role.toString()
|
|
68231
68237
|
}))).then(function (res) {
|
|
68232
68238
|
setSurveyId(res.data.id);
|
|
68233
68239
|
localStorage.removeItem("dataFormSurvey");
|