Skip to content

Commit

Permalink
fix: revert change that broke template content being overridden
Browse files Browse the repository at this point in the history
refs: #1309
  • Loading branch information
Zachatoo committed May 21, 2024
1 parent 1bc91c3 commit 2639196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Templater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class Templater {
doc.replaceSelection(output_content);
// Refresh editor to ensure properties widget shows after inserting template in blank file
if (active_editor.file) {
await app.vault.append(active_editor.file, "");
await app.vault.modify(active_editor.file, editor.getValue());
}
app.workspace.trigger("templater:template-appended", {
view: active_view,
Expand Down

0 comments on commit 2639196

Please sign in to comment.