fix: export highlight in yellow in notion if color is null

This commit is contained in:
Hongbo Wu
2024-07-11 11:41:20 +08:00
parent e3955fa4b9
commit 4e388de7ed

View File

@ -277,7 +277,9 @@ export class NotionClient implements IntegrationClient {
},
annotations: {
code: true,
color: highlight.color as AnnotationColor,
color: highlight.color
? (highlight.color as AnnotationColor)
: 'yellow',
},
},
],