dce-reactkit 3.2.2-beta.12 → 3.2.2-beta.13
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 +9 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +11 -5
package/dist/cjs/index.js
CHANGED
|
@@ -2871,11 +2871,14 @@ const LogReviewer = (props) => {
|
|
|
2871
2871
|
// Current year but included month
|
|
2872
2872
|
|| (year === newDateFilterState.endDate.year
|
|
2873
2873
|
&& month <= newDateFilterState.endDate.month)) {
|
|
2874
|
-
// Add to list
|
|
2875
|
-
|
|
2876
|
-
year
|
|
2877
|
-
|
|
2878
|
-
|
|
2874
|
+
// Add to list if not already loaded
|
|
2875
|
+
if (!logMap[year]
|
|
2876
|
+
|| !logMap[year][month]) {
|
|
2877
|
+
toLoad.push({
|
|
2878
|
+
year,
|
|
2879
|
+
month,
|
|
2880
|
+
});
|
|
2881
|
+
}
|
|
2879
2882
|
// Increment
|
|
2880
2883
|
month += 1;
|
|
2881
2884
|
if (month > 12) {
|
|
@@ -2899,6 +2902,7 @@ const LogReviewer = (props) => {
|
|
|
2899
2902
|
});
|
|
2900
2903
|
// Check which year/month combos we need to load
|
|
2901
2904
|
const toLoad = listMonthsToLoad(newDateFilterState);
|
|
2905
|
+
console.log('Filter update:', newDateFilterState, toLoad, logMap);
|
|
2902
2906
|
// If nothing to load, finished
|
|
2903
2907
|
if (toLoad.length === 0) {
|
|
2904
2908
|
return;
|