fix(reactflowUtils.ts): add a check to ensure that the proxy id exists in the idsMap before updating it in the template

This commit is contained in:
anovazzi1 2023-10-16 17:50:00 -03:00
commit a3de1ea989

View file

@ -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];
}
});