We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1231e9a commit 42076eeCopy full SHA for 42076ee
1 file changed
gui/src/components/provider-workspace/ProviderSettings.tsx
@@ -53,7 +53,7 @@ export default function ProviderSettings({
53
setNote(item.note ?? "");
54
setAllowPrivateNetwork(item.allowPrivateNetwork ?? false);
55
setMsg(null);
56
- setEndpointChoice(matchChoiceId(baseUrlChoices, item.baseUrl));
+ queueMicrotask(() => setEndpointChoice(matchChoiceId(baseUrlChoices, item.baseUrl)));
57
}, [item.adapter, item.baseUrl, item.defaultModel, item.authMode, item.keyOptional, item.note, item.allowPrivateNetwork, baseUrlChoices]);
58
/* eslint-enable react-hooks/set-state-in-effect */
59
0 commit comments