Skip to content

Commit

Permalink
fix race condition in Environment name text field
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Dec 3, 2023
1 parent 2461392 commit 98398f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fun AppContentView() {
val coroutineScope = rememberCoroutineScope()
var selectedProject by remember { mutableStateOf<Project?>(null) }
var selectedSubprojectId by remember { mutableStateOf<String?>(null) }
val selectedSubproject = selectedSubprojectId?.let { projectCollectionRepository.subscribeLatestSubproject(ProjectAndEnvironmentsDI(), it).collectAsState(null).value?.first }
val selectedSubproject = selectedSubprojectId?.let { projectCollectionRepository.subscribeLatestSubproject(ProjectAndEnvironmentsDI(), it).collectAsState(null, Dispatchers.Main.immediate).value?.first }
var selectedEnvironment by remember { mutableStateOf<Environment?>(null) }
var requestCollectionDI by remember { mutableStateOf<RequestsDI?>(null) }
val requestCollection = requestCollectionDI?.let { di -> requestCollectionRepository.subscribeLatestCollection(di).collectAsState(null).value?.first }
Expand Down

0 comments on commit 98398f9

Please sign in to comment.