Skip to content

Commit

Permalink
Phani | A-1206828243895868 | Remove debouncing and add API cancellati…
Browse files Browse the repository at this point in the history
…on for Appointment Patient Search (#323)

* Phani : Add logic to Cancel API calls in-flight

* Phani : Fix tests

* Phani : Remove debounce related code

* Phani : Add method to create disabled dropdown options
  • Loading branch information
Phanindra-tw authored and Arjun-Go committed May 22, 2024
1 parent e3468a7 commit b1441e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/controllers/manage/appointmentsCreateController.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ angular.module('bahmni.appointments')
var patientSearchURL = appService.getAppDescriptor().getConfigValue('patientSearchUrl');
var loginLocationUuid = sessionService.getLoginLocationUuid();
$scope.minCharLengthToTriggerPatientSearch = appService.getAppDescriptor().getConfigValue('minCharLengthToTriggerPatientSearch') || 3;

$scope.maxAppointmentProviders = appService.getAppDescriptor().getConfigValue("maxAppointmentProviders") || 1;

var isProviderNotAvailableForAppointments = function (selectedProvider) {
Expand Down
2 changes: 1 addition & 1 deletion ui/react-components/api/patientApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getPatientsByLocation = async (locationUuid, searchQuery, cancelTok
if (!axios.isCancel(error)) {
console.error(error);
}
return error;
return error.response;
}
};

Expand Down

0 comments on commit b1441e1

Please sign in to comment.