refac
This commit is contained in:
1 parent
e17dfae72e
commit
9c21d4ed3b
2 files changed
+3
-2
No files matched your search
@@ -2397,6 +2397,7 @@ async def process_web(
|
|||||||
'status': True,
|
'status': True,
|
||||||
'collection_name': collection_name,
|
'collection_name': collection_name,
|
||||||
'filename': form_data.url,
|
'filename': form_data.url,
|
||||||
|
'content': content,
|
||||||
'file': {
|
'file': {
|
||||||
'data': {
|
'data': {
|
||||||
'content': content,
|
'content': content,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
$: if (citation) {
|
$: if (citation) {
|
||||||
expandedDocs = new Set();
|
expandedDocs = new Set();
|
||||||
mergedDocuments = citation.document?.map((c, i) => {
|
mergedDocuments = (citation.document ?? []).map((c, i) => {
|
||||||
return {
|
return {
|
||||||
source: citation.source,
|
source: citation.source,
|
||||||
document: c,
|
document: c,
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
title={$i18n.t('Content')}
|
title={$i18n.t('Content')}
|
||||||
></iframe>
|
></iframe>
|
||||||
{:else}
|
{:else}
|
||||||
{@const rawContent = document.document.trim().replace(/\n\n+/g, '\n\n')}
|
{@const rawContent = (document.document ?? '').trim().replace(/\n\n+/g, '\n\n')}
|
||||||
{@const isTruncated =
|
{@const isTruncated =
|
||||||
($settings?.renderMarkdownInPreviews ?? true) &&
|
($settings?.renderMarkdownInPreviews ?? true) &&
|
||||||
rawContent.length > CONTENT_PREVIEW_LIMIT &&
|
rawContent.length > CONTENT_PREVIEW_LIMIT &&
|
||||||
|
|||||||
Reference in new issue
Block a user