This commit is contained in:
Adria Navarro 2025-03-20 18:04:55 +01:00
parent 04ad69a269
commit 64b32bc33d
1 changed files with 4 additions and 3 deletions

View File

@ -29,7 +29,7 @@
...authConfigs, ...authConfigs,
...$oauth2.configs.map(c => ({ ...$oauth2.configs.map(c => ({
label: c.name, label: c.name,
value: c.id, value: c._id,
})), })),
] ]
$: authConfig = allConfigs.find(c => c.value === authConfigId) $: authConfig = allConfigs.find(c => c.value === authConfigId)
@ -108,8 +108,9 @@
{#each $oauth2.configs as config} {#each $oauth2.configs as config}
<ListItem <ListItem
title={config.name} title={config.name}
on:click={() => selectConfiguration(config.id, RestAuthType.OAUTH2)} on:click={() =>
selected={config.id === authConfigId} selectConfiguration(config._id, RestAuthType.OAUTH2)}
selected={config._id === authConfigId}
/> />
{/each} {/each}
</List> </List>