Skip to content

Commit 95b6819

Browse files
committed
fixes for audit loading
1 parent c8a4ae4 commit 95b6819

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/src/main/java/com/couchbase/learningpath/ui/audit/AuditListViewModel.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class AuditListViewModel(
4343
_auditFlow = auditRepository.getAuditsByProjectId(project.projectId)
4444
_auditFlow?.let { f ->
4545
f.collect {
46-
_audits.postValue(it)
46+
viewModelScope.launch(Dispatchers.Main){
47+
_audits.postValue(it)
48+
}
4749
}
4850
}
4951
}

0 commit comments

Comments
 (0)