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 e459a4b49e..c375d3198a 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 @@ -34,6 +34,11 @@ export const SwitchPluginVersion: FC = (props) => { pluginDetails.refetch() onChange?.(targetVersion!) }, [hideUpdateModal, onChange, pluginDetails, targetVersion]) + + const targetUniqueIdentifier = (() => { + if (!targetVersion || !pluginDetail) return uniqueIdentifier + return uniqueIdentifier.replaceAll(pluginDetail.version, targetVersion) + })() return
{isShowUpdateModal && pluginDetail && = (props) => { payload: pluginDetail.declaration, }, targetPackageInfo: { - id: uniqueIdentifier, + id: targetUniqueIdentifier, version: targetVersion!, }, }}