fix source link return host name

This commit is contained in:
Henry
2023-08-17 16:15:00 +01:00
parent e9adc15ff2
commit c33a4a78d6
@@ -346,7 +346,9 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
key={index} key={index}
label={ label={
URL URL
? `${URL.pathname.substring(0, 15)}...` ? URL.pathname.substring(0, 15) === '/'
? URL.host
: `${URL.pathname.substring(0, 15)}...`
: `${source.pageContent.substring(0, 15)}...` : `${source.pageContent.substring(0, 15)}...`
} }
component='a' component='a'