dce-reactkit 3.2.2-beta.25 → 3.2.2-beta.27
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
|
@@ -2807,7 +2807,7 @@ const LogReviewer = (props) => {
|
|
|
2807
2807
|
// Context exists
|
|
2808
2808
|
LogMetadata.Context
|
|
2809
2809
|
// Context has children already
|
|
2810
|
-
&& LogMetadata.Context[context] !== 'string') {
|
|
2810
|
+
&& typeof LogMetadata.Context[context] !== 'string') {
|
|
2811
2811
|
LogMetadata.Context[context][LogBuiltInMetadata.Context.Uncategorized] = (LogBuiltInMetadata.Context.Uncategorized);
|
|
2812
2812
|
}
|
|
2813
2813
|
});
|
|
@@ -2825,7 +2825,6 @@ const LogReviewer = (props) => {
|
|
|
2825
2825
|
LogMetadata.Target[target] = target;
|
|
2826
2826
|
}
|
|
2827
2827
|
});
|
|
2828
|
-
console.log(LogMetadata);
|
|
2829
2828
|
/* -------------- State ------------- */
|
|
2830
2829
|
// Create initial date filter state
|
|
2831
2830
|
const today = getTimeInfoInET();
|
|
@@ -2849,17 +2848,19 @@ const LogReviewer = (props) => {
|
|
|
2849
2848
|
var _a, _b;
|
|
2850
2849
|
const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
|
|
2851
2850
|
if (typeof contextValue === 'string') {
|
|
2852
|
-
// Case: no subcontexts
|
|
2851
|
+
// Case: no subcontexts, init as checked
|
|
2853
2852
|
initContextFilterState[contextValue] = true;
|
|
2854
2853
|
}
|
|
2855
2854
|
else {
|
|
2856
2855
|
// Case: subcontexts exist
|
|
2857
|
-
initContextFilterState[
|
|
2856
|
+
initContextFilterState[context] = {};
|
|
2858
2857
|
Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2858
|
+
// Skip self ("_")
|
|
2859
|
+
if (subcontext === '_') {
|
|
2860
|
+
return;
|
|
2862
2861
|
}
|
|
2862
|
+
// Initialize as checked
|
|
2863
|
+
initContextFilterState[context][subcontext] = true;
|
|
2863
2864
|
});
|
|
2864
2865
|
}
|
|
2865
2866
|
});
|