improve the code.

merge-requests/758/head
Elham Rababah 5 years ago
parent 29eeb21e76
commit 1918c2219e

@ -43,7 +43,6 @@ class LiveCarePatientServices extends BaseService {
onSuccess: (dynamic response, int statusCode) {
List<PatiantInformtion> localPatientList= [];
localPatientList.clear();
response['List_PendingPatientList'].forEach((v) {
localPatientList.add(PatiantInformtion.fromJson(v));
@ -59,7 +58,6 @@ class LiveCarePatientServices extends BaseService {
/// remove items.
List<PatiantInformtion> removedPatientList= [];
removedPatientList.clear();
_patientList.forEach((element) {
if ((localPatientList.singleWhere((it) => it.patientId == element.patientId,
orElse: () => null)) == null) {

@ -245,6 +245,7 @@ class LiveCarePatientViewModel extends BaseViewModel {
if(e.patientId == patient.patientId) {
e.episodeNo = 0 ;
e.appointmentNo = appointmentNo;
return;
}
});

Loading…
Cancel
Save