From 991b3427543d409488efc18b081b72b46425925e Mon Sep 17 00:00:00 2001 From: balibabu Date: Tue, 11 Jun 2024 10:54:30 +0800 Subject: [PATCH] fix: hide web crawl menu item (#1110) ### What problem does this PR solve? fix: hide web crawl menu item #1107 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- .../knowledge-file/document-toolbar.tsx | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx b/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx index 11ddeb779dc..1ffe7d1fba2 100644 --- a/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx +++ b/web/src/pages/add-knowledge/components/knowledge-file/document-toolbar.tsx @@ -34,10 +34,10 @@ interface IProps { } const DocumentToolbar = ({ - selectedRowKeys, - showCreateModal, - showWebCrawlModal, - showDocumentUploadModal, + selectedRowKeys, + showCreateModal, + showWebCrawlModal, + showDocumentUploadModal, }: IProps) => { const { t } = useTranslate('knowledgeDetails'); const { fetchDocumentList } = useFetchDocumentListOnMount(); @@ -66,18 +66,18 @@ const DocumentToolbar = ({ ), }, { type: 'divider' }, - { - key: '2', - onClick: showWebCrawlModal, - label: ( -
- -
- ), - }, + // { + // key: '2', + // onClick: showWebCrawlModal, + // label: ( + //
+ // + //
+ // ), + // }, { type: 'divider' }, { key: '3', @@ -92,7 +92,7 @@ const DocumentToolbar = ({ ), }, ]; - }, [showDocumentUploadModal, showWebCrawlModal, showCreateModal, t]); + }, [showDocumentUploadModal, showCreateModal, t]); const handleDelete = useCallback(() => { showDeleteConfirm({