catchup-library-web 2.2.20 → 2.2.21

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
@@ -7371,7 +7371,10 @@ var ActivityPreviewByData = ({
7371
7371
  showCorrectAnswer,
7372
7372
  isFullScreen
7373
7373
  };
7374
- const isEmpty = answerMapMap[selectedType].isEmpty;
7374
+ let isEmpty = false;
7375
+ if (answerMapMap[selectedType] && answerMapMap[selectedType].isEmpty) {
7376
+ isEmpty = answerMapMap[selectedType].isEmpty;
7377
+ }
7375
7378
  switch (selectedType) {
7376
7379
  case "ORDERING":
7377
7380
  return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
package/dist/index.mjs CHANGED
@@ -7148,7 +7148,10 @@ var ActivityPreviewByData = ({
7148
7148
  showCorrectAnswer,
7149
7149
  isFullScreen
7150
7150
  };
7151
- const isEmpty = answerMapMap[selectedType].isEmpty;
7151
+ let isEmpty = false;
7152
+ if (answerMapMap[selectedType] && answerMapMap[selectedType].isEmpty) {
7153
+ isEmpty = answerMapMap[selectedType].isEmpty;
7154
+ }
7152
7155
  switch (selectedType) {
7153
7156
  case "ORDERING":
7154
7157
  return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.2.20",
3
+ "version": "2.2.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -132,7 +132,10 @@ const ActivityPreviewByData = ({
132
132
  isFullScreen,
133
133
  };
134
134
 
135
- const isEmpty = answerMapMap[selectedType].isEmpty;
135
+ let isEmpty = false;
136
+ if (answerMapMap[selectedType] && answerMapMap[selectedType].isEmpty) {
137
+ isEmpty = answerMapMap[selectedType].isEmpty;
138
+ }
136
139
 
137
140
  switch (selectedType) {
138
141
  case "ORDERING":