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

fix(history): use hashHistory

This commit is contained in:
Georges Indrianjafy
2018-01-29 09:24:12 +02:00
parent d5da6de86c
commit 9f14a503d8

View File

@@ -550,7 +550,7 @@ class NoteList extends React.Component {
cloneNote () {
const { selectedNoteKeys } = this.state
const { dispatch } = this.props
const { dispatch, location } = this.props
const { router } = this.context
const { storage, folder } = this.resolveTargetFolder()
const notes = this.notes.map((note) => Object.assign({}, note))
@@ -578,6 +578,11 @@ class NoteList extends React.Component {
this.setState({
selectedNoteKeys: [uniqueKey]
})
hashHistory.push({
pathname: location.pathname,
query: {key: note.storage + '-' + note.key}
})
})
}