mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 12:49:53 +01:00
chore(markdown_import): don't display anything on empty input
This commit is contained in:
@@ -36,7 +36,7 @@ export default function MarkdownImportDialog() {
|
||||
|
||||
function submit() {
|
||||
setShown(false);
|
||||
if (editorApiRef.current) {
|
||||
if (editorApiRef.current && text) {
|
||||
convertMarkdownToHtml(text, editorApiRef.current);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user