dce-reactkit 3.2.2-beta.22 → 3.2.2-beta.24

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
@@ -2795,7 +2795,9 @@ const LogReviewer = (props) => {
2795
2795
  // Add built-in LogMetadata
2796
2796
  // > Add "uncategorized" subcontext to each context
2797
2797
  Object.keys((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {}).forEach((context) => {
2798
- if (LogMetadata.Context
2798
+ if (
2799
+ // Context exists
2800
+ LogMetadata.Context
2799
2801
  // Context has children already
2800
2802
  && typeof LogMetadata.Context[context] !== 'string') {
2801
2803
  LogMetadata.Context[context][LogBuiltInMetadata.Context.Uncategorized] = (LogBuiltInMetadata.Context.Uncategorized);
@@ -2845,8 +2847,10 @@ const LogReviewer = (props) => {
2845
2847
  // Case: subcontexts exist
2846
2848
  initContextFilterState[contextValue._] = {};
2847
2849
  Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
2848
- const subcontextValue = contextValue[subcontext];
2849
- initContextFilterState[contextValue._][subcontextValue] = true;
2850
+ if (subcontext) {
2851
+ const subcontextValue = contextValue[subcontext];
2852
+ initContextFilterState[contextValue._][subcontextValue] = true;
2853
+ }
2850
2854
  });
2851
2855
  }
2852
2856
  });
@@ -3129,8 +3133,6 @@ const LogReviewer = (props) => {
3129
3133
  }));
3130
3134
  // Create filter UI
3131
3135
  filterDrawer = (React.createElement(ItemPicker, { title: "Context", items: pickableItems, onChanged: (updatedItems) => {
3132
- console.log('Items before:', pickableItems);
3133
- console.log('Updated Items:', updatedItems);
3134
3136
  // Update our state
3135
3137
  updatedItems.forEach((pickableItem) => {
3136
3138
  if (pickableItem.isGroup) {
@@ -3138,7 +3140,6 @@ const LogReviewer = (props) => {
3138
3140
  pickableItem.children.forEach((subcontextItem) => {
3139
3141
  if (!subcontextItem.isGroup) {
3140
3142
  contextFilterState[pickableItem.id][subcontextItem.id] = (subcontextItem.checked);
3141
- console.log('Update child:', pickableItem.id, subcontextItem.id, subcontextItem.checked);
3142
3143
  }
3143
3144
  });
3144
3145
  }
@@ -3147,6 +3148,7 @@ const LogReviewer = (props) => {
3147
3148
  contextFilterState[pickableItem.id] = (pickableItem.checked);
3148
3149
  }
3149
3150
  });
3151
+ console.log('New context filter state:', contextFilterState);
3150
3152
  dispatch({
3151
3153
  type: ActionType.UpdateContextFilterState,
3152
3154
  contextFilterState,