Browse Source

Merge branch 'master-ukk'

glglove 4 days ago
parent
commit
977e3d71bb

+ 1 - 1
packages/cpt_uk/lib/modules/job/job_applied/widget/applied_add_staff_controller.dart

@@ -198,7 +198,7 @@ class AppliedAddStaffController extends GetxController with DioCancelableMixin {
     if (locationOptionList == null || locationOptionList?.isEmpty == true) {
       selectedLocationIndex = 0;
     } else {
-      selectedLocationIndex = locationOptionList?.indexWhere((e) => e.toString() == selectedJobIndustryStr)?? 0;
+      selectedLocationIndex = locationOptionList?.indexWhere((e) => e.toString() == selectedLocationStr)?? 0;
     }
 
     if (selectedLocationIndex < 0) {

+ 1 - 1
packages/cpt_uk/lib/modules/job/labour_request_preselected_list/widget/preselected_add_staff_controller.dart

@@ -192,7 +192,7 @@ class PreselectedAddStaffController extends GetxController with DioCancelableMix
     if (locationOptionList == null || locationOptionList?.isEmpty == true) {
       selectedLocationIndex = 0;
     } else {
-      selectedLocationIndex = locationOptionList?.indexWhere((e) => e.toString() == selectedJobIndustryStr)?? 0;
+      selectedLocationIndex = locationOptionList?.indexWhere((e) => e.toString() == selectedLocationStr)?? 0;
     }
 
     if (selectedLocationIndex < 0) {