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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.12",
3
+ "version": "3.2.2-beta.13",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -629,11 +629,16 @@ const LogReviewer: React.FC<Props> = (props) => {
629
629
  && month <= newDateFilterState.endDate.month
630
630
  )
631
631
  ) {
632
- // Add to list
633
- toLoad.push({
634
- year,
635
- month,
636
- });
632
+ // Add to list if not already loaded
633
+ if (
634
+ !logMap[year]
635
+ || !logMap[year][month]
636
+ ) {
637
+ toLoad.push({
638
+ year,
639
+ month,
640
+ });
641
+ }
637
642
 
638
643
  // Increment
639
644
  month += 1;
@@ -663,6 +668,7 @@ const LogReviewer: React.FC<Props> = (props) => {
663
668
 
664
669
  // Check which year/month combos we need to load
665
670
  const toLoad = listMonthsToLoad(newDateFilterState);
671
+ console.log('Filter update:', newDateFilterState, toLoad, logMap);
666
672
 
667
673
  // If nothing to load, finished
668
674
  if (toLoad.length === 0) {