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/cjs/index.js +10 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +12 -6
package/package.json
CHANGED
|
@@ -622,18 +622,23 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
622
622
|
let month = newDateFilterState.startDate.month;
|
|
623
623
|
while (
|
|
624
624
|
// Earlier year
|
|
625
|
-
(year
|
|
625
|
+
(year < newDateFilterState.endDate.year)
|
|
626
626
|
// Current year but included month
|
|
627
627
|
|| (
|
|
628
628
|
year === newDateFilterState.endDate.year
|
|
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) {
|