Allow YAML tags to be a string

This commit is contained in:
Vishesh Handa
2020-08-19 10:12:07 +02:00
parent 6be1c22496
commit 9380f3cc06
2 changed files with 29 additions and 0 deletions

View File

@ -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");
}