From 140d97a23d238170dc316e766f39bfe0cbd554c6 Mon Sep 17 00:00:00 2001 From: Alun Turner Date: Thu, 15 Jun 2023 13:24:09 +0100 Subject: [PATCH] switch to null if non-existent --- platforms/web/lib/useWysiwyg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/web/lib/useWysiwyg.ts b/platforms/web/lib/useWysiwyg.ts index 79a2ae882..8fe4f1e98 100644 --- a/platforms/web/lib/useWysiwyg.ts +++ b/platforms/web/lib/useWysiwyg.ts @@ -109,6 +109,6 @@ export function useWysiwyg(wysiwygProps?: WysiwygProps) { }, suggestion: memoisedMappedSuggestion, getMessageHTMLContent: () => - composerModel?.get_content_as_message_html() ?? '', + composerModel?.get_content_as_message_html() ?? null, }; }