Skip to content

Commit bd2a271

Browse files
committed
small fix in case searchedFiles is nullish
1 parent 1bd4be1 commit bd2a271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/components/ChatV2/Conversation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const AssistantMessage = ({
210210
)}
211211
{fileSearchResult?.status === "completed" &&
212212
<OutlineButtonBlack sx={{ mt: 3 }} startIcon={<FormatQuoteIcon />} onClick={() => setActiveFileSearchResult(fileSearchResult)}>
213-
<Typography variant='body2'>{`${t('chat:displaySources')}: `}<em>{fileSearchResult.searchedFiles.join(', ')}</em></Typography>
213+
<Typography variant='body2'>{`${t('chat:displaySources')}: `}<em>{fileSearchResult?.searchedFiles?.join(', ')}</em></Typography>
214214
</OutlineButtonBlack>
215215
}
216216
</Box>

0 commit comments

Comments
 (0)