diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 9b51a7eb..48b90428 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -390,9 +390,9 @@ export class MarkdownTextArea extends Component< } contentChange() { - if (this.state.content) { - this.props.onContentChange?.(this.state.content); - } + // Coerces the undefineds to empty strings, for replacing in the DB + let content = this.state.content ?? ""; + this.props.onContentChange?.(content); } handleContentChange(i: MarkdownTextArea, event: any) {