mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
change folder
This commit is contained in:
@@ -79,6 +79,13 @@ function notes (state = [], action) {
|
||||
notes.push(action.note)
|
||||
return notes
|
||||
}
|
||||
case 'MOVE_NOTE':
|
||||
{
|
||||
let notes = state.slice()
|
||||
notes = notes.filter((note) => note.key !== action.note.key || note.folder !== action.note.folder || note.storage !== action.note.storage)
|
||||
notes.push(action.newNote)
|
||||
return notes
|
||||
}
|
||||
}
|
||||
return state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user