Procházet zdrojové kódy

fix: reference issue in external knowledge api (#9240)

Yi Xiao před 6 měsíci
rodič
revize
44f6a536d2

+ 1 - 1
web/app/components/base/chat/chat/citation/popup.tsx

@@ -100,7 +100,7 @@ const Popup: FC<PopupProps> = ({
                             />
                             <Tooltip
                               text={t('common.chat.citation.vectorHash')}
-                              data={source.index_node_hash.substring(0, 7)}
+                              data={source.index_node_hash?.substring(0, 7)}
                               icon={<BezierCurve03 className='mr-1 w-3 h-3' />}
                             />
                             {