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

fix moving note across different storage bug

should update storageNoteMap here.
This commit is contained in:
yosmoc
2018-05-10 06:22:27 +02:00
parent 90e8dd038d
commit d58ea70a95

View File

@@ -256,7 +256,7 @@ function data (state = defaultDataMap(), action) {
let noteSet = state.storageNoteMap.get(note.storage)
noteSet = new Set(noteSet)
noteSet.add(uniqueKey)
state.folderNoteMap.set(folderKey, noteSet)
state.storageNoteMap.set(folderKey, noteSet)
}
// Update foldermap if folder changed or post created