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/esm/index.js
CHANGED
|
@@ -3123,7 +3123,7 @@ const LogReviewer = (props) => {
|
|
|
3123
3123
|
].forEach((partialContextMap) => {
|
|
3124
3124
|
Object.keys(partialContextMap).forEach((context) => {
|
|
3125
3125
|
// Add context
|
|
3126
|
-
contextMap[context] = context;
|
|
3126
|
+
contextMap[context] = partialContextMap[context];
|
|
3127
3127
|
// If context has children, add an "uncategorized" subcontext
|
|
3128
3128
|
if (typeof contextMap[context] !== 'string') {
|
|
3129
3129
|
contextMap[context][LogBuiltInMetadata.Context.Uncategorized] = (LogBuiltInMetadata.Context.Uncategorized);
|
|
@@ -3137,7 +3137,7 @@ const LogReviewer = (props) => {
|
|
|
3137
3137
|
LogBuiltInMetadata.Target,
|
|
3138
3138
|
].forEach((partialTargetMap) => {
|
|
3139
3139
|
Object.keys(partialTargetMap).forEach((target) => {
|
|
3140
|
-
targetMap[target] = target;
|
|
3140
|
+
targetMap[target] = partialTargetMap[target];
|
|
3141
3141
|
});
|
|
3142
3142
|
});
|
|
3143
3143
|
/* -------------- State ------------- */
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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: '',
|