Skip to content

Commit

Permalink
Fix default content in devtools event sender (#10699)
Browse files Browse the repository at this point in the history
It regressed from `{\n\n}` to an empty string in #10391

Signed-off-by: Tulir Asokan <tulir@maunium.net>
  • Loading branch information
tulir committed Apr 24, 2023
1 parent ca102c4 commit 2486e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/dialogs/devtools/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2486e7a

Please sign in to comment.