add default tag
This commit is contained in:
parent
0dc14812de
commit
7844996672
|
@ -6,6 +6,10 @@ export function createNote(noteTitle) {
|
|||
const tags = hashtags.map(entry => entry.value.slice(1))
|
||||
const title = hashtags.reduce(removeHashtag, noteTitle)
|
||||
|
||||
if (tags.length === 0) {
|
||||
tags.push("none")
|
||||
}
|
||||
|
||||
return {
|
||||
title,
|
||||
tags,
|
||||
|
|
Loading…
Reference in New Issue