We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cabcf98 commit 84afbd4Copy full SHA for 84afbd4
1 file changed
react/src/components/Chat/EndpointSelect.tsx
@@ -195,8 +195,10 @@ const EndpointSelect: React.FC<EndpointSelectProps> = ({
195
{...selectPropsWithoutLoading}
196
// override value and onChange
197
labelInValue // use labelInValue to display the selected option label
198
+ // @ts-ignore
199
value={optimisticValueWithLabel}
200
onChange={(v, option) => {
201
202
setOptimisticValueWithLabel(v);
203
setControllableValue(v.value, _.castArray(option)?.[0].endpoint);
204
selectPropsWithoutLoading.onChange?.(v.value || '', option);
0 commit comments