Updated on 2026-08-14
This commit is contained in:
parent
38f5c42a94
commit
c6d333dbeb
14 changed files with 149 additions and 59 deletions
|
|
@ -69,10 +69,10 @@ internal class EnvironmentsTogglesViewModel @Inject constructor(
|
|||
EnvironmentTogglesScreenUM.ApiInfoUM(
|
||||
name = config.id.name,
|
||||
select = currentEnvironment.name,
|
||||
url = config.environments[currentEnvironment]
|
||||
url = config.environmentConfigs.firstOrNull { it.environment == currentEnvironment }?.baseUrl
|
||||
?: error("Current environment's url isn't found"),
|
||||
environments = config.environments
|
||||
.map { environment -> environment.key.name }
|
||||
environments = config.environmentConfigs
|
||||
.map { environmentConfig -> environmentConfig.environment.name }
|
||||
.toImmutableSet(),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue