diff --git a/web/app/components/workflow/block-selector/all-start-blocks.tsx b/web/app/components/workflow/block-selector/all-start-blocks.tsx index ff23db52c2..d36ae324f1 100644 --- a/web/app/components/workflow/block-selector/all-start-blocks.tsx +++ b/web/app/components/workflow/block-selector/all-start-blocks.tsx @@ -25,7 +25,6 @@ const AllStartBlocks = ({ className, searchText, onSelect, - availableBlocksTypes, tags = [], }: AllStartBlocksProps) => { const { t } = useTranslation() diff --git a/web/app/components/workflow/block-selector/trigger-plugin/item.tsx b/web/app/components/workflow/block-selector/trigger-plugin/item.tsx index cf2b7444ba..9025942e06 100644 --- a/web/app/components/workflow/block-selector/trigger-plugin/item.tsx +++ b/web/app/components/workflow/block-selector/trigger-plugin/item.tsx @@ -5,10 +5,10 @@ import { RiArrowDownSLine, RiArrowRightSLine } from '@remixicon/react' import type { FC } from 'react' import React, { useEffect, useMemo, useRef } from 'react' import { useTranslation } from 'react-i18next' -import { CollectionType } from '../../../tools/types' -import BlockIcon from '../../block-icon' -import { BlockEnum } from '../../types' -import type { TriggerDefaultValue, TriggerWithProvider } from '../types' +import { CollectionType } from '@/app/components/tools/types' +import BlockIcon from '@/app/components/workflow/block-icon' +import { BlockEnum } from '@/app/components/workflow/types' +import type { TriggerDefaultValue, TriggerWithProvider } from '@/app/components/workflow/block-selector/types' import TriggerPluginActionItem from './action-item' type Props = { @@ -86,6 +86,7 @@ const TriggerPluginItem: FC = ({ trigger_label: trigger.label[language], trigger_description: trigger.description[language], title: trigger.label[language], + plugin_unique_identifier: payload.plugin_unique_identifier, is_team_authorization: payload.is_team_authorization, output_schema: trigger.output_schema || {}, paramSchemas: trigger.parameters, diff --git a/web/app/components/workflow/block-selector/trigger-plugin/list.tsx b/web/app/components/workflow/block-selector/trigger-plugin/list.tsx index 4d2cd88dd3..e7d3ad54a7 100644 --- a/web/app/components/workflow/block-selector/trigger-plugin/list.tsx +++ b/web/app/components/workflow/block-selector/trigger-plugin/list.tsx @@ -17,7 +17,6 @@ const TriggerPluginList = ({ onSelect, searchText, onContentStateChange, - tags = [], }: TriggerPluginListProps) => { const { data: triggerPluginsData } = useAllTriggerPlugins() const language = useGetLanguage() diff --git a/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx b/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx index 3d1cdd1da6..df6950c10a 100644 --- a/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx +++ b/web/app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx @@ -3,7 +3,7 @@ import type { FC } from 'react' import { RiBracesLine, } from '@remixicon/react' -import type { PluginTriggerVarInputs } from '../../types' +import type { PluginTriggerVarInputs } from '@/app/components/workflow/nodes/trigger-plugin/types' import type { CredentialFormSchema } from '@/app/components/header/account-setting/model-provider-page/declarations' import { FormTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations' import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks' @@ -13,7 +13,7 @@ import FormInputItem from '@/app/components/workflow/nodes/_base/components/form import { useBoolean } from 'ahooks' import SchemaModal from '@/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal' import type { Trigger } from '@/app/components/tools/types' -import type { TriggerWithProvider } from '../../../../block-selector/types' +import type { TriggerWithProvider } from '@/app/components/workflow/block-selector/types' type Props = { readOnly: boolean