dce-reactkit 3.2.2-beta.21 → 3.2.2-beta.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.21",
3
+ "version": "3.2.2-beta.22",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1024,9 +1024,14 @@ const LogReviewer: React.FC<Props> = (props) => {
1024
1024
  if (pickableItem.isGroup) {
1025
1025
  // Has subcontexts
1026
1026
  pickableItem.children.forEach((subcontextItem) => {
1027
- (contextFilterState as any)[pickableItem.id][subcontextItem.id] = (
1028
- (subcontextItem as any).checked
1029
- );
1027
+ if (!subcontextItem.isGroup) {
1028
+ (
1029
+ contextFilterState[pickableItem.id] as { [k: string]: boolean }
1030
+ )[subcontextItem.id] = (
1031
+ subcontextItem.checked
1032
+ );
1033
+ console.log('Update child:', pickableItem.id, subcontextItem.id, subcontextItem.checked);
1034
+ }
1030
1035
  });
1031
1036
  } else {
1032
1037
  // No subcontexts