dce-reactkit 3.2.2-beta.11 → 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/esm/index.js CHANGED
@@ -2859,15 +2859,18 @@ const LogReviewer = (props) => {
2859
2859
  let month = newDateFilterState.startDate.month;
2860
2860
  while (
2861
2861
  // Earlier year
2862
- (year <= newDateFilterState.endDate.year)
2862
+ (year < newDateFilterState.endDate.year)
2863
2863
  // Current year but included month
2864
2864
  || (year === newDateFilterState.endDate.year
2865
2865
  && month <= newDateFilterState.endDate.month)) {
2866
- // Add to list
2867
- toLoad.push({
2868
- year,
2869
- month,
2870
- });
2866
+ // Add to list if not already loaded
2867
+ if (!logMap[year]
2868
+ || !logMap[year][month]) {
2869
+ toLoad.push({
2870
+ year,
2871
+ month,
2872
+ });
2873
+ }
2871
2874
  // Increment
2872
2875
  month += 1;
2873
2876
  if (month > 12) {
@@ -2891,6 +2894,7 @@ const LogReviewer = (props) => {
2891
2894
  });
2892
2895
  // Check which year/month combos we need to load
2893
2896
  const toLoad = listMonthsToLoad(newDateFilterState);
2897
+ console.log('Filter update:', newDateFilterState, toLoad, logMap);
2894
2898
  // If nothing to load, finished
2895
2899
  if (toLoad.length === 0) {
2896
2900
  return;