dce-reactkit 3.2.2-beta.26 → 3.2.2-beta.28
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 +7 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +12 -7
package/dist/esm/index.js
CHANGED
|
@@ -2817,7 +2817,6 @@ const LogReviewer = (props) => {
|
|
|
2817
2817
|
LogMetadata.Target[target] = target;
|
|
2818
2818
|
}
|
|
2819
2819
|
});
|
|
2820
|
-
console.log(LogMetadata);
|
|
2821
2820
|
/* -------------- State ------------- */
|
|
2822
2821
|
// Create initial date filter state
|
|
2823
2822
|
const today = getTimeInfoInET();
|
|
@@ -2841,17 +2840,19 @@ const LogReviewer = (props) => {
|
|
|
2841
2840
|
var _a, _b;
|
|
2842
2841
|
const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
|
|
2843
2842
|
if (typeof contextValue === 'string') {
|
|
2844
|
-
// Case: no subcontexts
|
|
2843
|
+
// Case: no subcontexts, init as checked
|
|
2845
2844
|
initContextFilterState[contextValue] = true;
|
|
2846
2845
|
}
|
|
2847
2846
|
else {
|
|
2848
2847
|
// Case: subcontexts exist
|
|
2849
|
-
initContextFilterState[
|
|
2848
|
+
initContextFilterState[context] = {};
|
|
2850
2849
|
Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2850
|
+
// Skip self ("_")
|
|
2851
|
+
if (subcontext === '_') {
|
|
2852
|
+
return;
|
|
2854
2853
|
}
|
|
2854
|
+
// Initialize as checked
|
|
2855
|
+
initContextFilterState[context][subcontext] = true;
|
|
2855
2856
|
});
|
|
2856
2857
|
}
|
|
2857
2858
|
});
|