mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
refactor: remove unused initialization logic in AppViewModel
This commit is contained in:
@@ -152,16 +152,6 @@ class AppViewModel @Inject constructor(
|
||||
initialValue = emptyMap()
|
||||
)
|
||||
|
||||
init {
|
||||
viewModelScope.launch {
|
||||
try {
|
||||
appContentRepository.ensureReady()
|
||||
} catch (e: Exception) {
|
||||
// State is already set to Error by ensureReady; don't crash the app
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun onLibrarySelected(id: UUID, name: String) {
|
||||
viewModelScope.launch {
|
||||
navigationManager.navigate(Route.LibraryRoute(library = LibraryDto(id = id, name = name)))
|
||||
|
||||
Reference in New Issue
Block a user