@speakableio/core 1.0.57 → 1.0.58
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.native.js +11 -0
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +11 -0
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.js +11 -0
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.js
CHANGED
|
@@ -1130,6 +1130,17 @@ async function getAssignmentScore({
|
|
|
1130
1130
|
id: result.id
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
|
+
if (response.data.cards == null) {
|
|
1134
|
+
try {
|
|
1135
|
+
await api.updateDoc(path, { cards: {} });
|
|
1136
|
+
} catch (error) {
|
|
1137
|
+
console.error("Error initializing score cards:", error);
|
|
1138
|
+
}
|
|
1139
|
+
return {
|
|
1140
|
+
...response.data,
|
|
1141
|
+
cards: {}
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1133
1144
|
return response.data;
|
|
1134
1145
|
}
|
|
1135
1146
|
async function getPracticeScore({ userId, setId }) {
|