reset date aggregation type for trend analysis when switching to non-trend analysis

This commit is contained in:
MaysWind
2024-11-24 23:43:54 +08:00
parent e92725f38b
commit d519b80b61
@@ -784,6 +784,10 @@ export default {
});
}
if (this.analysisType !== statisticsConstants.allAnalysisTypes.TrendAnalysis) {
this.trendDateAggregationType = statisticsConstants.allDateAggregationTypes.Month.type;
}
this.analysisType = analysisType;
this.loading = true;
this.statisticsStore.updateTransactionStatisticsInvalidState(true);