From e24b04b30ff275b6d3cde9a0dbd2c8f8b741638d Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Tue, 7 Jan 2025 10:58:53 +0800 Subject: [PATCH] refactor: switch plugin version component to not accept version --- .../workflow/nodes/_base/components/switch-plugin-version.tsx | 3 ++- web/app/components/workflow/nodes/agent/use-config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx b/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx index 5c8233ecfb..ad7414ca0c 100644 --- a/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx +++ b/web/app/components/workflow/nodes/_base/components/switch-plugin-version.tsx @@ -30,8 +30,9 @@ export const SwitchPluginVersion: FC = (props) => { const handleUpdatedFromMarketplace = useCallback(() => { hideUpdateModal() + pluginDetails.refetch() onChange?.(targetVersion!) - }, [hideUpdateModal, onChange, targetVersion]) + }, [hideUpdateModal, onChange, pluginDetails, targetVersion]) return
{isShowUpdateModal && pluginDetail && { ) const pluginId = inputs.agent_strategy_provider_name?.split('/').splice(0, 2).join('/') const pluginDetail = useCheckInstalled({ - pluginIds: [pluginId || ''], + pluginIds: [pluginId!], enabled: Boolean(pluginId), }) const formData = useMemo(() => {