mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(desktop): remount provider config panel when the provider changes
The panel instance survived a provider switch, so an in-flight fetch for the old provider could resolve last and seed the new provider's panel with the wrong schema — Save would then PUT those keys to the new provider's endpoint. Key the mount on the provider name.
This commit is contained in:
parent
4d4db4281e
commit
0e09cc5cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ export function ConfigSettings({
|
|||
value={getNested(config, key)}
|
||||
/>
|
||||
{key === 'memory.provider' && typeof getNested(config, key) === 'string' && getNested(config, key) ? (
|
||||
<ProviderConfigPanel provider={String(getNested(config, key))} />
|
||||
<ProviderConfigPanel key={String(getNested(config, key))} provider={String(getNested(config, key))} />
|
||||
) : null}
|
||||
</div>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue