unifying surrogate keys for event log and options, fixes #103

This commit is contained in:
azivner
2018-05-26 23:25:09 -04:00
parent a30734f1bc
commit cab54a458f
6 changed files with 41 additions and 21 deletions

View File

@@ -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);
}