dce-reactkit 3.2.2-beta.55 → 3.2.2-beta.56

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.55",
3
+ "version": "3.2.2-beta.56",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -766,7 +766,7 @@ const LogReviewer: React.FC<Props> = (props) => {
766
766
  // Create initial context filter state
767
767
  const initContextFilterState: ContextFilterState = {};
768
768
  Object.keys(contextMap).forEach((context) => {
769
- const contextValue = (LogMetadata.Context ?? {})[context];
769
+ const contextValue = contextMap[context];
770
770
  if (typeof contextValue === 'string') {
771
771
  // Case: no subcontexts, init as checked
772
772
  initContextFilterState[contextValue] = true;
@@ -790,6 +790,7 @@ const LogReviewer: React.FC<Props> = (props) => {
790
790
  Object.keys(LogMetadata.Tag ?? {}).forEach((tag) => {
791
791
  initTagFilterState[tag] = false;
792
792
  });
793
+ console.log(contextMap, initContextFilterState, initTagFilterState);
793
794
 
794
795
  // Create advanced filter state
795
796
  const initAdvancedFilterState: AdvancedFilterState = {