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

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
@@ -3131,7 +3131,7 @@ const LogReviewer = (props) => {
3131
3131
  ].forEach((partialContextMap) => {
3132
3132
  Object.keys(partialContextMap).forEach((context) => {
3133
3133
  // Add context
3134
- contextMap[context] = context;
3134
+ contextMap[context] = partialContextMap[context];
3135
3135
  // If context has children, add an "uncategorized" subcontext
3136
3136
  if (typeof contextMap[context] !== 'string') {
3137
3137
  contextMap[context][LogBuiltInMetadata.Context.Uncategorized] = (LogBuiltInMetadata.Context.Uncategorized);
@@ -3145,7 +3145,7 @@ const LogReviewer = (props) => {
3145
3145
  LogBuiltInMetadata.Target,
3146
3146
  ].forEach((partialTargetMap) => {
3147
3147
  Object.keys(partialTargetMap).forEach((target) => {
3148
- targetMap[target] = target;
3148
+ targetMap[target] = partialTargetMap[target];
3149
3149
  });
3150
3150
  });
3151
3151
  /* -------------- State ------------- */
@@ -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;
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;
@@ -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: '',