diff --git a/components/Form/ChatbotLink.vue b/components/Form/ChatbotLink.vue index 0e6a6d0..43ba6c8 100644 --- a/components/Form/ChatbotLink.vue +++ b/components/Form/ChatbotLink.vue @@ -79,7 +79,6 @@ if (props.item.cmetadata) { const statesStore = useStatesStore(); const collectionUuid = statesStore.collection?.uuid || ''; const metadataDefaults = statesStore.collection?.cmetadata?.metadata_defaults?.links || {}; -const linkLoadOptions = statesStore.collection?.cmetadata?.link_load_options || []; const integration = useIntegration(); const indexingResult = ref<'Indexed' | 'Not Indexed' | 'None'>('None'); @@ -138,7 +137,6 @@ const create = async () => { link: url.value, collection_id: collectionUuid, metadata: { ...metadata, ...metadataDefaults }, - options: linkOptions(url.value), }, }); } catch (err) { @@ -147,16 +145,6 @@ const create = async () => { } }; -const linkOptions = (url: string) => { - let selector: any = linkLoadOptions.find((o: any) => o.url === url)?.selector; - if (selector) { - return { selector }; - } - selector = linkLoadOptions.find((o: any) => url.startsWith(o.url))?.selector; - - return selector ? { selector } : {}; -}; - const deleteLink = async () => { isDeleting.value = true; try { @@ -183,7 +171,6 @@ const reindexLink = async (item: Record, collection: string | undef link: url, collection_id: collection, metadata: metadata, - options: linkOptions(url), document_id: document_id, }, });