mario-education 2.4.257-release → 2.4.258-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
@@ -17217,13 +17217,13 @@ var useQuestionCateList = function useQuestionCateList() {
17217
17217
 
17218
17218
  if (!parent) {
17219
17219
  newQuestionCategories = questionCategories.filter(function (q) {
17220
- return !q.parentCategoryId;
17220
+ return !(q !== null && q !== void 0 && q.parentCategoryId);
17221
17221
  });
17222
17222
  } else {
17223
17223
  newQuestionCategories = questionCategories.filter(function (q) {
17224
17224
  var _q$parentCategoryId;
17225
17225
 
17226
- return (_q$parentCategoryId = q.parentCategoryId) === null || _q$parentCategoryId === void 0 ? void 0 : _q$parentCategoryId.includes(parent.id);
17226
+ return q === null || q === void 0 ? void 0 : (_q$parentCategoryId = q.parentCategoryId) === null || _q$parentCategoryId === void 0 ? void 0 : _q$parentCategoryId.includes(parent.id);
17227
17227
  });
17228
17228
  }
17229
17229
 
@@ -17233,7 +17233,7 @@ var useQuestionCateList = function useQuestionCateList() {
17233
17233
  hasChildren: questionCategories.findIndex(function (qc) {
17234
17234
  var _qc$parentCategoryId;
17235
17235
 
17236
- return (_qc$parentCategoryId = qc.parentCategoryId) === null || _qc$parentCategoryId === void 0 ? void 0 : _qc$parentCategoryId.includes(q.id);
17236
+ return qc === null || qc === void 0 ? void 0 : (_qc$parentCategoryId = qc.parentCategoryId) === null || _qc$parentCategoryId === void 0 ? void 0 : _qc$parentCategoryId.includes(q.id);
17237
17237
  }) >= 0
17238
17238
  });
17239
17239
  });
@@ -17281,12 +17281,12 @@ var useQuestionCateList = function useQuestionCateList() {
17281
17281
  categories.forEach(function (c) {
17282
17282
  var _c$parentCategoryId;
17283
17283
 
17284
- if ((_c$parentCategoryId = c.parentCategoryId) !== null && _c$parentCategoryId !== void 0 && _c$parentCategoryId.includes(parent.id)) newCategories = hideChildren(c);
17284
+ if (c !== null && c !== void 0 && (_c$parentCategoryId = c.parentCategoryId) !== null && _c$parentCategoryId !== void 0 && _c$parentCategoryId.includes(parent.id)) newCategories = hideChildren(c);
17285
17285
  });
17286
17286
  newCategories = newCategories.filter(function (c) {
17287
17287
  var _c$parentCategoryId2;
17288
17288
 
17289
- return !((_c$parentCategoryId2 = c.parentCategoryId) !== null && _c$parentCategoryId2 !== void 0 && _c$parentCategoryId2.includes(parent.id));
17289
+ return !(c !== null && c !== void 0 && (_c$parentCategoryId2 = c.parentCategoryId) !== null && _c$parentCategoryId2 !== void 0 && _c$parentCategoryId2.includes(parent.id));
17290
17290
  });
17291
17291
  newCategories[indexOfParent].show = false;
17292
17292
  return newCategories;