mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 Fix issue listing databases without name on Notion Node (#2197)
This commit is contained in:
parent
4db451d9d9
commit
fd064b7816
|
@ -100,7 +100,7 @@ export class NotionTrigger implements INodeType {
|
|||
const { results: databases } = await notionApiRequest.call(this, 'POST', `/search`, { page_size: 100, filter: { property: 'object', value: 'database' } });
|
||||
for (const database of databases) {
|
||||
returnData.push({
|
||||
name: database.title[0].plain_text,
|
||||
name: database.title[0]?.plain_text || database.id,
|
||||
value: database.id,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue