mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
unifying surrogate keys for event log and options, fixes #103
This commit is contained in:
@@ -13,11 +13,6 @@ let codeEditorInitialized;
|
||||
async function show() {
|
||||
codeEditorInitialized = false;
|
||||
|
||||
// if the note is empty, it doesn't make sense to do render-only since nothing will be rendered
|
||||
if (!noteDetailService.getCurrentNote().content.trim()) {
|
||||
toggleEdit();
|
||||
}
|
||||
|
||||
$noteDetailRender.show();
|
||||
|
||||
await render();
|
||||
@@ -61,6 +56,11 @@ async function render() {
|
||||
|
||||
$noteDetailRender.html(bundle.html);
|
||||
|
||||
// if the note is empty, it doesn't make sense to do render-only since nothing will be rendered
|
||||
if (!bundle.html.trim()) {
|
||||
toggleEdit();
|
||||
}
|
||||
|
||||
await bundleService.executeBundle(bundle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user