mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
⚡ Handle rich_text when simplifying data on Notion Node (#2128)
This commit is contained in:
@@ -376,6 +376,9 @@ export function simplifyProperties(properties: any) {
|
||||
if (['text'].includes(properties[key].type)) {
|
||||
const texts = properties[key].text.map((e: { plain_text: string }) => e.plain_text || {}).join('');
|
||||
results[`${key}`] = texts;
|
||||
} else if (['rich_text'].includes(properties[key].type)) {
|
||||
const texts = properties[key].rich_text.map((e: { plain_text: string }) => e.plain_text || {}).join('');
|
||||
results[`${key}`] = texts;
|
||||
} else if (['url', 'created_time', 'checkbox', 'number', 'last_edited_time', 'email', 'phone_number', 'date'].includes(properties[key].type)) {
|
||||
// tslint:disable-next-line: no-any
|
||||
results[`${key}`] = properties[key][type] as any;
|
||||
|
||||
Reference in New Issue
Block a user