@kth/om-kursen-ladok-client 2.5.3 → 2.5.4
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/createApiClient.js +1 -1
- package/package.json +1 -1
package/dist/createApiClient.js
CHANGED
|
@@ -218,7 +218,7 @@ const createApiClient = (config) => {
|
|
|
218
218
|
const data = Object.values(syllabuses);
|
|
219
219
|
const syllabusesData = data.slice(1); // Assume the first element is metadata, skip it.
|
|
220
220
|
const gradingScalesCodes = yield (0, gradingScalesUtils_1.getGradingScalesCodes)(ladokClient);
|
|
221
|
-
const UtbildningsinstansUID = syllabusesData[
|
|
221
|
+
const UtbildningsinstansUID = syllabusesData[0].UtbildningsinstansUID;
|
|
222
222
|
const examinationModules = yield (0, examinationModulesUtil_1.getExaminationModules)(UtbildningsinstansUID, language, ladokClient);
|
|
223
223
|
if (!examinationModules) {
|
|
224
224
|
throw new Error(`No examination modules were found for UtbildningsinstansUID ${UtbildningsinstansUID}`);
|
package/package.json
CHANGED