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:
parent
7553a89d52
commit
a3de1ea989
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue