musora-content-services 2.131.9 → 2.131.10

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.131.10](https://github.com/railroadmedia/musora-content-services/compare/v2.131.9...v2.131.10) (2026-02-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * safety for assignment hierarchy if ids are null (dataset inconsistencies) ([#781](https://github.com/railroadmedia/musora-content-services/issues/781)) ([6b89370](https://github.com/railroadmedia/musora-content-services/commit/6b893701a33dd0b205da969ae9fbfa444dcdf701))
11
+
5
12
  ### [2.131.9](https://github.com/railroadmedia/musora-content-services/compare/v2.131.8...v2.131.9) (2026-02-06)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.131.9",
3
+ "version": "2.131.10",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1379,10 +1379,10 @@ function populateHierarchyLookups(currentLevel, data, parentId) {
1379
1379
 
1380
1380
  let assignments = currentLevel['assignments']
1381
1381
  if (assignments) {
1382
- let assignmentIds = assignments.map((assignment) => assignment[railcontentIdField])
1382
+ let assignmentIds = assignments.map((assignment) => assignment[railcontentIdField]).filter(Boolean)
1383
1383
  data.children[contentId] = (data.children[contentId] ?? []).concat(assignmentIds)
1384
1384
  assignmentIds.forEach((assignmentId) => {
1385
- data.parents[assignmentId] = contentId
1385
+ if (assignmentId) data.parents[assignmentId] = contentId
1386
1386
  })
1387
1387
  }
1388
1388
  }