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

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.23",
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,16 @@ 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
+ console.log('Update child:', pickableItem.id, subcontextItem.id, subcontextItem.checked);
1029
+ console.log(contextFilterState);
1030
+ (
1031
+ contextFilterState[pickableItem.id] as { [k: string]: boolean }
1032
+ )[subcontextItem.id] = (
1033
+ subcontextItem.checked
1034
+ );
1035
+ console.log(contextFilterState);
1036
+ }
1030
1037
  });
1031
1038
  } else {
1032
1039
  // No subcontexts