Skip to content

Commit 84afbd4

Browse files
committed
ignore TypeScript type error of BAISelect value
1 parent cabcf98 commit 84afbd4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

react/src/components/Chat/EndpointSelect.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,10 @@ const EndpointSelect: React.FC<EndpointSelectProps> = ({
195195
{...selectPropsWithoutLoading}
196196
// override value and onChange
197197
labelInValue // use labelInValue to display the selected option label
198+
// @ts-ignore
198199
value={optimisticValueWithLabel}
199200
onChange={(v, option) => {
201+
// @ts-ignore
200202
setOptimisticValueWithLabel(v);
201203
setControllableValue(v.value, _.castArray(option)?.[0].endpoint);
202204
selectPropsWithoutLoading.onChange?.(v.value || '', option);

0 commit comments

Comments
 (0)