mario-education 2.4.602-feedback → 2.4.603-feedback

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/index.js CHANGED
@@ -30771,7 +30771,7 @@ var useDashboard = function useDashboard() {
30771
30771
  } catch (e) {
30772
30772
  return Promise.reject(e);
30773
30773
  }
30774
- }, [debouncedFilter, language]);
30774
+ }, [debouncedFilter, debouncedAcademicYear, language]);
30775
30775
 
30776
30776
  var handleFilterStudent = function handleFilterStudent(option) {
30777
30777
  if (option != null) {
@@ -30958,7 +30958,7 @@ var useDashboard = function useDashboard() {
30958
30958
  };
30959
30959
 
30960
30960
  React.useEffect(function () {
30961
- if (!!academicYear && academicYear.length > 0) {
30961
+ if (!!academicYear && academicYear.length > 0 && filter.academicYearId != 0) {
30962
30962
  getDataWithLoading(callApi(getAllTotalTime, setListTotalTime, []), 'dataStatics');
30963
30963
  getDataWithLoading(callApi(getOverviewQuestionChart, handleSetDataChartOneToOne, [], "OneToOne"), 'dataOverview');
30964
30964
  getDataWithLoading(callApi(getVeryLowMetric, handleChangeMetric, []), 'dataMetric');