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

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
@@ -3087,19 +3087,7 @@ const reducer = (state, action) => {
3087
3087
  return Object.assign(Object.assign({}, state), { contextFilterState: action.contextFilterState });
3088
3088
  }
3089
3089
  case ActionType.UpdateTagFilterState: {
3090
- const { tagFilterState } = action;
3091
- // Select all if every tag is deselected
3092
- const numTagsSelected = (Object.values(tagFilterState)
3093
- .filter((isSelected) => {
3094
- return isSelected;
3095
- })
3096
- .length);
3097
- if (numTagsSelected === 0) {
3098
- Object.keys(tagFilterState).forEach((tag) => {
3099
- tagFilterState[tag] = true;
3100
- });
3101
- }
3102
- return Object.assign(Object.assign({}, state), { tagFilterState });
3090
+ return Object.assign(Object.assign({}, state), { tagFilterState: action.tagFilterState });
3103
3091
  }
3104
3092
  case ActionType.UpdateActionErrorFilterState: {
3105
3093
  return Object.assign(Object.assign({}, state), { actionErrorFilterState: action.actionErrorFilterState });
@@ -3131,7 +3119,7 @@ const LogReviewer = (props) => {
3131
3119
  ].forEach((partialContextMap) => {
3132
3120
  Object.keys(partialContextMap).forEach((context) => {
3133
3121
  // Add context
3134
- contextMap[context] = context;
3122
+ contextMap[context] = partialContextMap[context];
3135
3123
  // If context has children, add an "uncategorized" subcontext
3136
3124
  if (typeof contextMap[context] !== 'string') {
3137
3125
  contextMap[context][LogBuiltInMetadata.Context.Uncategorized] = (LogBuiltInMetadata.Context.Uncategorized);
@@ -3145,7 +3133,7 @@ const LogReviewer = (props) => {
3145
3133
  LogBuiltInMetadata.Target,
3146
3134
  ].forEach((partialTargetMap) => {
3147
3135
  Object.keys(partialTargetMap).forEach((target) => {
3148
- targetMap[target] = target;
3136
+ targetMap[target] = partialTargetMap[target];
3149
3137
  });
3150
3138
  });
3151
3139
  /* -------------- State ------------- */
@@ -3191,7 +3179,6 @@ const LogReviewer = (props) => {
3191
3179
  Object.keys((_c = LogMetadata.Tag) !== null && _c !== void 0 ? _c : {}).forEach((tag) => {
3192
3180
  initTagFilterState[tag] = false;
3193
3181
  });
3194
- console.log(contextMap, initContextFilterState, initTagFilterState);
3195
3182
  // Create advanced filter state
3196
3183
  const initAdvancedFilterState = {
3197
3184
  userFirstName: '',
@@ -3535,7 +3522,6 @@ const LogReviewer = (props) => {
3535
3522
  const description = genHumanReadableName(tag);
3536
3523
  return (React__default["default"].createElement(CheckboxButton, { key: tag, id: `LogReviewer-tag-${tag}-checkbox`, text: description, ariaLabel: `require that logs be tagged with "${description}" or any other selected tag`, checked: tagFilterState[tag], onChanged: (checked) => {
3537
3524
  tagFilterState[tag] = checked;
3538
- console.log(tagFilterState);
3539
3525
  dispatch({
3540
3526
  type: ActionType.UpdateTagFilterState,
3541
3527
  tagFilterState,
@@ -3830,7 +3816,6 @@ const LogReviewer = (props) => {
3830
3816
  .every((isSelected) => {
3831
3817
  return !isSelected;
3832
3818
  }))) {
3833
- console.log(log.context, contextFilterState);
3834
3819
  return;
3835
3820
  }
3836
3821
  // Subcontext doesn't match