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/package.json
CHANGED
|
@@ -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
|
-
|
|
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) {
|