diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 1bb3ac1a0..fa8e36269 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -911,7 +911,7 @@ function updateProxyIdsOnTemplate( idsMap: { [key: string]: string } ) { Object.keys(template).forEach((key) => { - if (template[key].proxy) { + if (template[key].proxy && idsMap[template[key].proxy!.id]) { template[key].proxy!.id = idsMap[template[key].proxy!.id]; } });