Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
Fix default content in devtools event sender
Browse files Browse the repository at this point in the history
Regressed in matrix-org#10391

Signed-off-by: Tulir Asokan <tulir@maunium.net>
  • Loading branch information
tulir committed Apr 23, 2023
1 parent ba79650 commit b6f3599
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?;

if (mxEvent) {
const originalContent = mxEvent.getContent();
Expand Down

0 comments on commit b6f3599

Please sign in to comment.