dce-reactkit 3.2.2-beta.12 → 3.2.2-beta.14
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 +13 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +15 -19
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) {
|
|
@@ -870,13 +876,8 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
870
876
|
day={dateFilterState.startDate.day}
|
|
871
877
|
chooseFromPast
|
|
872
878
|
onChange={(month, day, year) => {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
dateFilterState: {
|
|
876
|
-
...dateFilterState,
|
|
877
|
-
startDate: { month, day, year },
|
|
878
|
-
},
|
|
879
|
-
});
|
|
879
|
+
dateFilterState.startDate = { month, day, year };
|
|
880
|
+
handleDateRangeUpdated(dateFilterState);
|
|
880
881
|
}}
|
|
881
882
|
/>
|
|
882
883
|
{' '}
|
|
@@ -890,13 +891,8 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
890
891
|
day={dateFilterState.endDate.day}
|
|
891
892
|
chooseFromPast
|
|
892
893
|
onChange={(month, day, year) => {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
dateFilterState: {
|
|
896
|
-
...dateFilterState,
|
|
897
|
-
endDate: { month, day, year },
|
|
898
|
-
},
|
|
899
|
-
});
|
|
894
|
+
dateFilterState.endDate = { month, day, year };
|
|
895
|
+
handleDateRangeUpdated(dateFilterState);
|
|
900
896
|
}}
|
|
901
897
|
/>
|
|
902
898
|
</TabBox>
|