refactor(web): reuse the same edit-custom-collection-modal component, and fix the pop up error (#28003)

This commit is contained in:
yangzheli
2025-11-13 11:44:21 +08:00
committed by GitHub
parent 2799b79e8c
commit b0e7e7752f
3 changed files with 5 additions and 363 deletions

View File

@@ -17,7 +17,7 @@ import type { BlockEnum, OnSelectBlock } from '@/app/components/workflow/types'
import SearchBox from '@/app/components/plugins/marketplace/search-box'
import { useTranslation } from 'react-i18next'
import { useBoolean } from 'ahooks'
import EditCustomToolModal from '@/app/components/tools/edit-custom-collection-modal/modal'
import EditCustomToolModal from '@/app/components/tools/edit-custom-collection-modal'
import {
createCustomCollection,
} from '@/service/tools'
@@ -149,7 +149,7 @@ const ToolPicker: FC<Props> = ({
if (isShowEditCollectionToolModal) {
return (
<EditCustomToolModal
positionLeft
dialogClassName='bg-background-overlay'
payload={null}
onHide={hideEditCustomCollectionModal}
onAdd={doCreateCustomToolCollection}