mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Add condition
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user