mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-13 23:04:12 +08:00
Allow YAML tags to be a string
This commit is contained in:
@ -190,6 +190,8 @@ class NoteSerializer implements NoteSerializerInterface {
|
||||
note.tags = tags.map((t) => t.toString()).toSet();
|
||||
} else if (tags is List) {
|
||||
note.tags = tags.map((t) => t.toString()).toSet();
|
||||
} else if (tags is String) {
|
||||
note.tags = {tags};
|
||||
} else {
|
||||
Log.e("Note Tags Decoding Failed: $tags");
|
||||
}
|
||||
|
Reference in New Issue
Block a user