dce-reactkit 3.2.2-beta.26 → 3.2.2-beta.27

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/dist/cjs/index.js CHANGED
@@ -2825,7 +2825,6 @@ const LogReviewer = (props) => {
2825
2825
  LogMetadata.Target[target] = target;
2826
2826
  }
2827
2827
  });
2828
- console.log(LogMetadata);
2829
2828
  /* -------------- State ------------- */
2830
2829
  // Create initial date filter state
2831
2830
  const today = getTimeInfoInET();
@@ -2849,17 +2848,19 @@ const LogReviewer = (props) => {
2849
2848
  var _a, _b;
2850
2849
  const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
2851
2850
  if (typeof contextValue === 'string') {
2852
- // Case: no subcontexts
2851
+ // Case: no subcontexts, init as checked
2853
2852
  initContextFilterState[contextValue] = true;
2854
2853
  }
2855
2854
  else {
2856
2855
  // Case: subcontexts exist
2857
- initContextFilterState[contextValue._] = {};
2856
+ initContextFilterState[context] = {};
2858
2857
  Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
2859
- if (subcontext) {
2860
- const subcontextValue = contextValue[subcontext];
2861
- initContextFilterState[contextValue._][subcontextValue] = true;
2858
+ // Skip self ("_")
2859
+ if (subcontext === '_') {
2860
+ return;
2862
2861
  }
2862
+ // Initialize as checked
2863
+ initContextFilterState[context][subcontext] = true;
2863
2864
  });
2864
2865
  }
2865
2866
  });