@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.
@@ -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[1].UtbildningsinstansUID;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kth/om-kursen-ladok-client",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Om kursen specific logic and mappings, uses both @kth/ladok-mellanlager-client and @kth/ladok-attributevarde-utils.",
5
5
  "main": "dist/index.js",
6
6
  "files": [