From c2752cffc1b9dc350dd5245ee49604835ec117fb Mon Sep 17 00:00:00 2001 From: PINAKIN-KANSARA-EY Date: Mon, 16 Oct 2023 16:13:37 -0700 Subject: [PATCH] HAPP-1667 re fix comments - fixed comments syncing --- .../healthrecord/hospitalvisits/HospitalVisitDetailScreen.kt | 4 ++-- .../ui/healthrecord/imaging/DiagnosticImagingDetailScreen.kt | 4 ++-- scripts/versions.gradle | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/hospitalvisits/HospitalVisitDetailScreen.kt b/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/hospitalvisits/HospitalVisitDetailScreen.kt index 414fd70f6..8b0a317d6 100644 --- a/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/hospitalvisits/HospitalVisitDetailScreen.kt +++ b/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/hospitalvisits/HospitalVisitDetailScreen.kt @@ -46,7 +46,7 @@ fun HospitalVisitDetailScreen( viewModel.getHospitalVisitDetails(id) } - LaunchedEffect(key1 = Unit) { + LaunchedEffect(key1 = uiState.id) { uiState.id?.let { commentsViModel.getComments(it) } @@ -58,7 +58,7 @@ fun HospitalVisitDetailScreen( .observeAsState() val workState = workRequest.value?.firstOrNull()?.state if (workState != null && workState.isFinished) { - LaunchedEffect(key1 = Unit) { + LaunchedEffect(key1 = uiState.id) { uiState.id?.let { commentsViModel.getComments(it) } diff --git a/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/imaging/DiagnosticImagingDetailScreen.kt b/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/imaging/DiagnosticImagingDetailScreen.kt index 8198d8b3a..f2a50b2fd 100644 --- a/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/imaging/DiagnosticImagingDetailScreen.kt +++ b/app/src/main/java/ca/bc/gov/bchealth/ui/healthrecord/imaging/DiagnosticImagingDetailScreen.kt @@ -67,7 +67,7 @@ fun DiagnosticImagingDetailScreen( .observeAsState() val workState = workRequest.value?.firstOrNull()?.state if (workState != null && workState.isFinished) { - LaunchedEffect(key1 = Unit) { + LaunchedEffect(key1 = uiState.id) { uiState.id?.let { commentsViewModel.getComments(it) } @@ -78,7 +78,7 @@ fun DiagnosticImagingDetailScreen( viewModel.getDiagnosticImagingDataDetails(id) } - LaunchedEffect(key1 = Unit) { + LaunchedEffect(key1 = uiState.id) { uiState.id?.let { commentsViewModel.getComments(it) } diff --git a/scripts/versions.gradle b/scripts/versions.gradle index 66a3e4193..96a8270f2 100644 --- a/scripts/versions.gradle +++ b/scripts/versions.gradle @@ -7,7 +7,7 @@ versions.compileSdkVersion = 33 //App versions.versionName = '2.0.0' -versions.versionCode = 221 +versions.versionCode = 222 versions.localApiVersion = 2 //Tools & Libs