mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Change the function name of findNoteTitle.js from find to findNoteTitle
This commit is contained in:
@@ -15,7 +15,7 @@ import StatusBar from '../StatusBar'
|
||||
import context from 'browser/lib/context'
|
||||
import ConfigManager from 'browser/main/lib/ConfigManager'
|
||||
import _ from 'lodash'
|
||||
import findNoteTitle from 'browser/lib/findNoteTitle'
|
||||
import { findNoteTitle } from 'browser/lib/findNoteTitle'
|
||||
|
||||
function pass (name) {
|
||||
switch (name) {
|
||||
@@ -82,7 +82,7 @@ class SnippetNoteDetail extends React.Component {
|
||||
note.tags = this.refs.tags.value
|
||||
note.description = this.refs.description.value
|
||||
note.updatedAt = new Date()
|
||||
note.title = findNoteTitle.find(note.description)
|
||||
note.title = findNoteTitle(note.description)
|
||||
|
||||
this.setState({
|
||||
note
|
||||
|
||||
Reference in New Issue
Block a user