dce-reactkit 3.2.2-beta.54 → 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/dist/esm/index.js CHANGED
@@ -3160,8 +3160,7 @@ const LogReviewer = (props) => {
3160
3160
  // Create initial context filter state
3161
3161
  const initContextFilterState = {};
3162
3162
  Object.keys(contextMap).forEach((context) => {
3163
- var _a, _b;
3164
- const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
3163
+ const contextValue = contextMap[context];
3165
3164
  if (typeof contextValue === 'string') {
3166
3165
  // Case: no subcontexts, init as checked
3167
3166
  initContextFilterState[contextValue] = true;
@@ -3169,7 +3168,7 @@ const LogReviewer = (props) => {
3169
3168
  else {
3170
3169
  // Case: subcontexts exist
3171
3170
  initContextFilterState[context] = {};
3172
- Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
3171
+ Object.values(contextMap[context]).forEach((subcontext) => {
3173
3172
  // Skip self ("_")
3174
3173
  if (subcontext === '_') {
3175
3174
  return;
@@ -3184,6 +3183,7 @@ const LogReviewer = (props) => {
3184
3183
  Object.keys((_c = LogMetadata.Tag) !== null && _c !== void 0 ? _c : {}).forEach((tag) => {
3185
3184
  initTagFilterState[tag] = false;
3186
3185
  });
3186
+ console.log(contextMap, initContextFilterState, initTagFilterState);
3187
3187
  // Create advanced filter state
3188
3188
  const initAdvancedFilterState = {
3189
3189
  userFirstName: '',