Переглянути джерело

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

Yi Xiao 6 місяців тому
батько
коміт
44f6a536d2
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      web/app/components/base/chat/chat/citation/popup.tsx

+ 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' />}
                             />
                             {