1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Add condition

This commit is contained in:
asmsuechan
2017-07-07 20:52:40 +09:00
parent ae08bf4d7a
commit 2d243abc12

View File

@@ -91,7 +91,7 @@ class MarkdownNoteDetail extends React.Component {
let { note } = this.state
note.content = this.refs.content.value
note.tags = this.refs.tags.value
if (this.refs.tags) note.tags = this.refs.tags.value
note.title = markdown.strip(findNoteTitle(note.content))
note.updatedAt = new Date()