Fix default content in devtools event sender (#10699)
It regressed from `{\n\n}` to an empty string in #10391 Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
parent
ca102c4d36
commit
2486e7a90a
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ export const TimelineEventEditor: React.FC<IEditorProps> = ({ mxEvent, onBack })
|
|||
return cli.sendEvent(context.room.roomId, eventType, content || {});
|
||||
};
|
||||
|
||||
let defaultContent = "";
|
||||
let defaultContent: string | undefined;
|
||||
|
||||
if (mxEvent) {
|
||||
const originalContent = mxEvent.getContent();
|
||||
|
|
Loading…
Reference in a new issue