From 8024e5fc52a3fe1d3313a4f47621d7a2a6750469 Mon Sep 17 00:00:00 2001 From: Shireen Missi Date: Tue, 12 Nov 2024 21:58:44 +0000 Subject: [PATCH] add null safety check --- packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts b/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts index 68270ce05a..1ae961012f 100644 --- a/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts @@ -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; }