diff --git a/Upload2Notion.ts b/Upload2Notion.ts index 7291d25..c7e22d6 100644 --- a/Upload2Notion.ts +++ b/Upload2Notion.ts @@ -50,7 +50,7 @@ export class Upload2Notion { ], }, Tags: { - multi_select: allowTags ? tags.map(tag => { + multi_select: allowTags && tags !== undefined ? tags.map(tag => { return {"name": tag} }) : [], },