fix: error if no tags but option enabled

This commit is contained in:
Jannik | Kuqs
2022-12-17 17:10:22 +01:00
parent 8ef9a007e3
commit 63ded7d50e

View File

@@ -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}
}) : [],
},