chore(markdown_import): don't display anything on empty input

This commit is contained in:
Elian Doran
2025-12-02 12:26:47 +02:00
parent 6b18ed6477
commit 514f5a0c81

View File

@@ -36,7 +36,7 @@ export default function MarkdownImportDialog() {
function submit() {
setShown(false);
if (editorApiRef.current) {
if (editorApiRef.current && text) {
convertMarkdownToHtml(text, editorApiRef.current);
}
}