mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
NoteSerializer: Do not serialize the filePath as metadata
This is a bug since we change this field from fileName to filePath.
This commit is contained in:
@ -50,7 +50,7 @@ class MarkdownYAMLSerializer implements NoteSerializer {
|
|||||||
|
|
||||||
var metadata = note.toJson();
|
var metadata = note.toJson();
|
||||||
metadata.remove('body');
|
metadata.remove('body');
|
||||||
metadata.remove('fileName');
|
metadata.remove('filePath');
|
||||||
|
|
||||||
str += toYAML(metadata);
|
str += toYAML(metadata);
|
||||||
str += serparator;
|
str += serparator;
|
||||||
|
Reference in New Issue
Block a user