mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
add null safety check
This commit is contained in:
parent
3e0c6cb3d2
commit
8024e5fc52
|
@ -643,7 +643,7 @@ function simplifyProperty(property: any) {
|
|||
(file: { type: string; [key: string]: any }) => file[file.type].url,
|
||||
);
|
||||
} else if (['status'].includes(property.type as string)) {
|
||||
result = property[type].name;
|
||||
result = property[type]?.name;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue