1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Change to use strict equation

This commit is contained in:
asmsuechan
2017-10-13 13:12:00 +09:00
parent 5433abddaf
commit 6440395197
2 changed files with 1 additions and 2 deletions

View File

@@ -289,7 +289,7 @@ class NoteList extends React.Component {
let storageKey = params.storageKey
let folderKey = params.folderKey
let storage = data.storageMap.get(storageKey)
if (storage == null) return []
if (storage === undefined) return []
let folder = _.find(storage.folders, {key: folderKey})
if (folder === undefined) return unorderedNotes

View File

@@ -44,7 +44,6 @@ function updateFolder (storageKey, folderKey, input) {
if (targetFolder == null) throw new Error('Target folder doesn\'t exist.')
targetFolder.name = input.name
targetFolder.color = input.color
// For compativility
CSON.writeFileSync(path.join(storage.path, 'boostnote.json'), _.pick(storage, ['folders', 'version']))