Skip to content

Commit f51738d

Browse files
committed
Use readable names for data source chips
1 parent 90c9c0a commit f51738d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/coral_web/src/components/Conversation/Composer/EnabledDataSources.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export const EnabledDataSources: React.FC<Props> = ({ isStreaming }) => {
6666
{enabledTools?.map((t, i) => (
6767
<DataSourceChip
6868
key={`tool-${i}`}
69-
iconName={TOOL_ID_TO_DISPLAY_INFO[t.name ?? '']?.icon ?? TOOL_FALLBACK_ICON}
70-
label={t.name ?? ''}
69+
iconName={TOOL_ID_TO_DISPLAY_INFO[t.name]?.icon ?? TOOL_FALLBACK_ICON}
70+
label={TOOL_ID_TO_DISPLAY_INFO[t.name]?.name ?? t.name}
7171
onDelete={handleDeleteTool(t.name ?? '')}
7272
/>
7373
))}

0 commit comments

Comments
 (0)