fix(data,ui): update plugin info model, API service, and plugins viewmodel
This commit is contained in:
1 parent
4c572509ec
commit
6152ee42b2
3 files changed
+31
-10
No files matched your search
@@ -32,7 +32,8 @@ class PluginsViewModel : ViewModel() {
|
||||
ApiClient.hermesApi.getPlugins()
|
||||
}
|
||||
if (response.isSuccessful) {
|
||||
_uiState.update { it.copy(isLoading = false, plugins = response.body().orEmpty()) }
|
||||
val plugins = response.body()?.plugins.orEmpty()
|
||||
_uiState.update { it.copy(isLoading = false, plugins = plugins) }
|
||||
} else {
|
||||
_uiState.update {
|
||||
it.copy(
|
||||
|
||||
Reference in new issue
Block a user