From 4e388de7edb77da856830df1df0e0fbe1425a6cf Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 11 Jul 2024 11:41:20 +0800 Subject: [PATCH] fix: export highlight in yellow in notion if color is null --- packages/api/src/services/integrations/notion.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/api/src/services/integrations/notion.ts b/packages/api/src/services/integrations/notion.ts index 3732986dd..ab558989c 100644 --- a/packages/api/src/services/integrations/notion.ts +++ b/packages/api/src/services/integrations/notion.ts @@ -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', }, }, ],