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(() => {