mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Adjust find function
Co-Authored-By: dredav <dredav@users.noreply.github.com>
This commit is contained in:
committed by
Junyoung Choi
parent
91d04b99d1
commit
5b99132f66
@@ -269,7 +269,7 @@ class NoteList extends React.Component {
|
|||||||
const selectedNoteKeys = [noteHash]
|
const selectedNoteKeys = [noteHash]
|
||||||
|
|
||||||
let locationToSelect = '/home'
|
let locationToSelect = '/home'
|
||||||
const noteByHash = data.noteMap.map((note) => note).find(note => { return note.key === noteHash })
|
const noteByHash = data.noteMap.map((note) => note).find(note => note.key === noteHash)
|
||||||
if (noteByHash !== undefined) {
|
if (noteByHash !== undefined) {
|
||||||
locationToSelect = '/storages/' + noteByHash.storage + '/folders/' + noteByHash.folder
|
locationToSelect = '/storages/' + noteByHash.storage + '/folders/' + noteByHash.folder
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user