catchup-library-web 1.2.5 → 1.2.7

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
@@ -2699,6 +2699,7 @@ var constructActivityItemListMaterialOnly = (materialMap, type) => {
2699
2699
  text: `${i18n_default.t("correct_blanks")}: `
2700
2700
  });
2701
2701
  Object.keys(materialMap).forEach((key, index) => {
2702
+ console.log(materialMap[key]);
2702
2703
  itemList.push({
2703
2704
  type: "text",
2704
2705
  text: `${index + 1}. ${Object.keys(materialMap[key])[0]}`
@@ -2766,7 +2767,7 @@ var constructActivityItemListMaterialOnly = (materialMap, type) => {
2766
2767
  });
2767
2768
  const groupName = key;
2768
2769
  let currentText = "";
2769
- materialMap[groupName].forEach((item) => {
2770
+ JSON.parse(materialMap[groupName]).forEach((item) => {
2770
2771
  currentText += `${item}, `;
2771
2772
  });
2772
2773
  currentText = currentText.substring(0, currentText.length - 2);
package/dist/index.mjs CHANGED
@@ -2519,6 +2519,7 @@ var constructActivityItemListMaterialOnly = (materialMap, type) => {
2519
2519
  text: `${i18n_default.t("correct_blanks")}: `
2520
2520
  });
2521
2521
  Object.keys(materialMap).forEach((key, index) => {
2522
+ console.log(materialMap[key]);
2522
2523
  itemList.push({
2523
2524
  type: "text",
2524
2525
  text: `${index + 1}. ${Object.keys(materialMap[key])[0]}`
@@ -2586,7 +2587,7 @@ var constructActivityItemListMaterialOnly = (materialMap, type) => {
2586
2587
  });
2587
2588
  const groupName = key;
2588
2589
  let currentText = "";
2589
- materialMap[groupName].forEach((item) => {
2590
+ JSON.parse(materialMap[groupName]).forEach((item) => {
2590
2591
  currentText += `${item}, `;
2591
2592
  });
2592
2593
  currentText = currentText.substring(0, currentText.length - 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -2012,6 +2012,7 @@ export const constructActivityItemListMaterialOnly = (
2012
2012
  text: `${i18n.t("correct_blanks")}: `,
2013
2013
  });
2014
2014
  Object.keys(materialMap).forEach((key, index) => {
2015
+ console.log(materialMap[key]);
2015
2016
  itemList.push({
2016
2017
  type: "text",
2017
2018
  text: `${index + 1}. ${Object.keys(materialMap[key])[0]}`,
@@ -2080,7 +2081,7 @@ export const constructActivityItemListMaterialOnly = (
2080
2081
 
2081
2082
  const groupName = key;
2082
2083
  let currentText = "";
2083
- materialMap[groupName].forEach((item: string) => {
2084
+ JSON.parse(materialMap[groupName]).forEach((item: string) => {
2084
2085
  currentText += `${item}, `;
2085
2086
  });
2086
2087
  currentText = currentText.substring(0, currentText.length - 2);