mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix bug on save button
This commit is contained in:
parent
a24af5bc5d
commit
205f9a22b6
@ -927,7 +927,7 @@ document.addEventListener("editor", (event) => {
|
||||
let saveContent = function() {
|
||||
let data = form2js(document.querySelector('form'));
|
||||
|
||||
if (typeof data.content === "undefined") {
|
||||
if (typeof data.content === "undefined" && kind != 'frontmatter-only') {
|
||||
data.content = "";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user