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/cjs/index.js CHANGED
@@ -3168,8 +3168,7 @@ const LogReviewer = (props) => {
3168
3168
  // Create initial context filter state
3169
3169
  const initContextFilterState = {};
3170
3170
  Object.keys(contextMap).forEach((context) => {
3171
- var _a, _b;
3172
- const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
3171
+ const contextValue = contextMap[context];
3173
3172
  if (typeof contextValue === 'string') {
3174
3173
  // Case: no subcontexts, init as checked
3175
3174
  initContextFilterState[contextValue] = true;
@@ -3177,7 +3176,7 @@ const LogReviewer = (props) => {
3177
3176
  else {
3178
3177
  // Case: subcontexts exist
3179
3178
  initContextFilterState[context] = {};
3180
- Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
3179
+ Object.values(contextMap[context]).forEach((subcontext) => {
3181
3180
  // Skip self ("_")
3182
3181
  if (subcontext === '_') {
3183
3182
  return;
@@ -3192,6 +3191,7 @@ const LogReviewer = (props) => {
3192
3191
  Object.keys((_c = LogMetadata.Tag) !== null && _c !== void 0 ? _c : {}).forEach((tag) => {
3193
3192
  initTagFilterState[tag] = false;
3194
3193
  });
3194
+ console.log(contextMap, initContextFilterState, initTagFilterState);
3195
3195
  // Create advanced filter state
3196
3196
  const initAdvancedFilterState = {
3197
3197
  userFirstName: '',