mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
refactor
This commit is contained in:
@@ -126,7 +126,10 @@ const MoveNoteComponent = ({close, note, setNote}) => {
|
||||
|
||||
if (note && note.id) {
|
||||
setNote({...db.notes.note(note.id).data});
|
||||
sendNoteEditedEvent(note.id);
|
||||
sendNoteEditedEvent({
|
||||
id: note.id,
|
||||
forced: true,
|
||||
});
|
||||
}
|
||||
dispatch({type: Actions.NOTEBOOKS});
|
||||
|
||||
@@ -146,7 +149,10 @@ const MoveNoteComponent = ({close, note, setNote}) => {
|
||||
if (note && note.id) {
|
||||
setNote({...db.notes.note(note.id).data});
|
||||
|
||||
sendNoteEditedEvent(note.id);
|
||||
sendNoteEditedEvent({
|
||||
id: note.id,
|
||||
forced: true,
|
||||
});
|
||||
}
|
||||
dispatch({type: Actions.NOTEBOOKS});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user