From a3de1ea98982826c78b0e82e8e94b8582388bca4 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 16 Oct 2023 17:50:00 -0300 Subject: [PATCH] fix(reactflowUtils.ts): add a check to ensure that the proxy id exists in the idsMap before updating it in the template --- src/frontend/src/utils/reactflowUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } });