@eeplatform/nuxt-layer-common 1.7.55 → 1.7.57

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.57
4
+
5
+ ### Patch Changes
6
+
7
+ - d061748: Fix enrollment form
8
+
9
+ ## 1.7.56
10
+
11
+ ### Patch Changes
12
+
13
+ - df8f3cf: Fix enrollment form
14
+
3
15
  ## 1.7.55
4
16
 
5
17
  ### Patch Changes
@@ -1538,13 +1538,14 @@ if (prop.schoolId) {
1538
1538
  }, 1000);
1539
1539
  }
1540
1540
 
1541
- if (prop.school && prop.selfService) {
1541
+ if (prop.school && !prop.selfService) {
1542
1542
  setTimeout(async () => {
1543
1543
  try {
1544
1544
  const school = await getSchoolById(prop.school ?? "school");
1545
1545
  if (school) {
1546
- enrollment.value.schoolId = school._id;
1546
+ enrollment.value.school = school._id;
1547
1547
  enrollment.value.region = school.region;
1548
+ enrollment.value.division = school.division;
1548
1549
  enrollment.value.province = school.province;
1549
1550
  enrollment.value.cityMunicipality = school.cityMunicipality;
1550
1551
  enrollment.value.schoolName = school.name;
@@ -2249,8 +2250,6 @@ watchEffect(() => {
2249
2250
  const selectedSchool = computed(() => enrollment.value.schoolId);
2250
2251
 
2251
2252
  watch(selectedSchool, (val) => {
2252
- console.log(val);
2253
-
2254
2253
  enrollment.value.gradeLevel = "";
2255
2254
 
2256
2255
  // Clear region, province, and cityMunicipality when schoolId is removed by user (not programmatically)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.55",
5
+ "version": "1.7.57",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"