Merge pull request #35 from jannikbuscha/master

fix: error if no tags but option enabled
This commit is contained in:
Easy
2022-12-18 11:36:29 +08:00
committed by GitHub

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