Skip to content

Commit 1aaa094

Browse files
committed
fix(outlook): pass raw categories to the tool's normalizeCategories so the block handles JSON-string input too
1 parent 8c84970 commit 1aaa094

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

apps/sim/blocks/blocks/outlook.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,7 @@ export const OutlookBlock: BlockConfig<OutlookResponse> = {
539539
categories != null &&
540540
categories !== ''
541541
) {
542-
const categoryList = Array.isArray(categories)
543-
? categories
544-
: String(categories).split(',')
545-
rest.categories = categoryList
546-
.map((category) => String(category).trim())
547-
.filter((category) => category.length > 0)
542+
rest.categories = categories
548543
}
549544

550545
if (rest.operation === 'copy_outlook') {

0 commit comments

Comments
 (0)