File tree Expand file tree Collapse file tree
ui/common/src/main/kotlin/com/edricchan/studybuddy/ui/common/licenses/vm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import kotlinx.coroutines.FlowPreview
1515import kotlinx.coroutines.flow.Flow
1616import kotlinx.coroutines.flow.MutableStateFlow
1717import kotlinx.coroutines.flow.StateFlow
18- import kotlinx.coroutines.flow.asStateFlow
1918import kotlinx.coroutines.flow.combine
2019import kotlinx.coroutines.flow.debounce
2120import javax.inject.Inject
@@ -68,11 +67,11 @@ class LicensesViewModel @Inject constructor(
6867 }
6968 }
7069
71- private val _selectedLibrary = MutableStateFlow <Library ?>( null )
72- val selectedLibrary = _selectedLibrary .asStateFlow( )
70+ val selectedLibrary : StateFlow <Library ?>
71+ field = MutableStateFlow < Library ?>( null )
7372
7473 fun setSelectedLibrary (library : Library ? ) {
75- _selectedLibrary .value = library
74+ selectedLibrary .value = library
7675 }
7776
7877 fun clearFilters () {
You can’t perform that action at this time.
0 commit comments