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

Fix a condition

This commit is contained in:
asmsuechan
2017-10-13 14:22:13 +09:00
parent 9bca133d88
commit f9b3284852

View File

@@ -289,7 +289,7 @@ class NoteList extends React.Component {
const storageKey = params.storageKey
const folderKey = params.folderKey
const storage = data.storageMap.get(storageKey)
if (location.pathname.match(/\/home|\/starred|\/trash/)) {
if (location.pathname.match(/\/home|\/starred|\/trash|\/search/)) {
return unorderedNotes
}
if (storage === undefined) return []