sapp-common-package-test-final 1.5.6 → 1.5.8

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.
@@ -1492,6 +1492,15 @@ var SAPPCalendar = function SAPPCalendar(_ref) {
1492
1492
  useEffectAfterMounted(function () {
1493
1493
  onRefetchAPI(startDate.toDate(), endDate.toDate());
1494
1494
  }, [startDate, endDate]);
1495
+ useEffect(function () {
1496
+ setFilter(function (prev) {
1497
+ return _extends({}, prev, {
1498
+ courseId: courses ? courses.map(function (item) {
1499
+ return item.id;
1500
+ }) : []
1501
+ });
1502
+ });
1503
+ }, [courses]);
1495
1504
  return React.createElement("div", {
1496
1505
  className: styles['sapp-calendar']
1497
1506
  }, filter.isOpen && React.createElement(FilterCalendar, {