Skip to content

Commit c187592

Browse files
authored
fix(FR-1008): Simplify EndpointSelectProps type and remove unused resource import (#3680)
1 parent 50021f5 commit c187592

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

react/src/components/Chat/EndpointSelect.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,7 @@ export type Endpoint = NonNullable<
2020
>;
2121

2222
export interface EndpointSelectProps
23-
extends Omit<
24-
SelectProps<
25-
string,
26-
{
27-
label?: string | null;
28-
value?: string | null;
29-
endpoint?: Endpoint | null;
30-
}
31-
>,
32-
'options' | 'labelInValue'
33-
> {
23+
extends Omit<SelectProps, 'options' | 'labelInValue'> {
3424
fetchKey?: string;
3525
lifecycleStageFilter?: LifecycleStage[];
3626
}
@@ -175,7 +165,6 @@ const EndpointSelect: React.FC<EndpointSelectProps> = ({
175165
}
176166
}, [isValueMatched]);
177167
return (
178-
// @ts-ignore
179168
<BAISelect
180169
ref={selectRef}
181170
placeholder={t('chatui.SelectEndpoint')}

src/backend-ai-app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ const loadPage =
104104
import('./components/backend-ai-serving-view.js');
105105
break;
106106
case 'agent':
107-
case 'resource':
108-
import('./components/backend-ai-resource-group-list.js');
109107
break;
110108
case 'verify-email':
111109
import('./components/backend-ai-email-verification-view.js');

0 commit comments

Comments
 (0)