From 63ded7d50ea12533c7594919198938b664dbbda7 Mon Sep 17 00:00:00 2001 From: Jannik | Kuqs Date: Sat, 17 Dec 2022 17:10:22 +0100 Subject: [PATCH] fix: error if no tags but option enabled --- Upload2Notion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} }) : [], },