fix bug on save button
parent
a24af5bc5d
commit
205f9a22b6
|
@ -927,7 +927,7 @@ document.addEventListener("editor", (event) => {
|
||||||
let saveContent = function() {
|
let saveContent = function() {
|
||||||
let data = form2js(document.querySelector('form'));
|
let data = form2js(document.querySelector('form'));
|
||||||
|
|
||||||
if (typeof data.content === "undefined") {
|
if (typeof data.content === "undefined" && kind != 'frontmatter-only') {
|
||||||
data.content = "";
|
data.content = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue