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